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.
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?