My file log4j2.xml is stored in the folder src/main/resources/config/log4j2.xml. I am somehow not able to invoke it during runtime either using VM arguments or any other way. I have tried it over many days.
log4j2.xml must be in the parent classloader. You cannot invoke it from a peer classloader. You should not be deploying it with your application. It should be placed on the runtime server by admin in the appropriate classpath that is the parent of the application server which is running your application.
You didn't tell me he was so big. Unlike this tiny ad: