Log4j JDK Logging adapter: Apply LogManager system property late in the startup process
问题 I have an WebSphere Application Server which runs an WebApp. I start the Server from Eclipse. The main logging framework in that application is log4j2, but there are some third party libraries which use java.util.logging. I want to redirect those logs to log4j2 so it uses my filters, log format etc. To achieve this I can use the Log4j JDK Logging Adapter. Usually one would set the system property -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager , for example in the jvm