This content has been marked as final.
Show 2 replies
-
1. Re: Any plans to switch to Log4J 2.X ?
jaysensharma Dec 10, 2015 9:46 AM (in response to atchijov-vgw)You should be able to use your own version of log4j as part of your application. Please see: How To - WildFly 10 - Project Documentation Editor
How do I use my own version of log4j?
If you need/want to include your version of log4j then you need to do the following two steps.
- Disable the adding of the logging dependencies to all your deployments with the add-logging-api-dependencies attribute and disable the use-deployment-logging-config attributeOR exclude the logging subsystem in a jboss-deployment-structure.xml.
- Then need to include a log4j library in your deployment.
This only works for logging in your deployment. Server logs will continue to use the logging subsystem configuration.
-
2. Re: Any plans to switch to Log4J 2.X ?
atchijov-vgw Dec 10, 2015 11:20 AM (in response to jaysensharma)Jay thanks for quick answer, but I am afraid this would not solve the problem completely. Correct me if I am wrong, but this would not allow me to control logging via Wildfly Web Management interface. Am I wrong?