​I am working with Java components that use JUL in a web application and I
am not able to get JUL logs routed to log4j 2, I added the required maven
dependency for log4j-jul and set
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager ​in the
command line but maven gives an NoSuchClassexception because
org.apache.logging.log4j.jul.LogManager is not yet loaded and by
System.setProperty() in a spring CustomWebApplicationInitializer but
https://logging.apache.org/log4j/log4j-2.2/log4j-jul/index.html says it
must be called before any call of to LogManager or Logger. ¿Where I should
set the system property in a web application?

Thank you!

*JOSÉ L. VALENCIA G.*​

Reply via email to