I have a log4j.properties file in the classpath.
It was found at the location APP/XX.jar/log4j.properties.
And I noticed that in the ear file I can also find log4j-1.2.17.jar in lib folder.
But whatever I wrote in the log4j.properties file, they were ignored. Like:
Or something like this:
But all of the loggings will still be printed on the server.
Did I configure them wrong or has my Wildfly this property file igored?
Given the location of the properties file it is ignored. If the log4j.properties file is in the
EAR/META-INF directory then WildFly will attempt to configure log4j for you. It's suggested not to use a
ConsoleAppender though as it could result in deadlocks due to the appender attempting to write to
System.out being wrapped in WildFly.
Given the configuration this leaves you with three options.
jboss-deployment-structure.xml and disable the logging subsystem on your deployment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!Donate Us With