JUL Adapter not working for Jersey

前端 未结 3 881
-上瘾入骨i
-上瘾入骨i 2021-02-15 13:10

I am trying to use JUL Adapter to delegate Java Util Logging to Log4j2. More precisely, any third-party library that use JUL to generate logs, should be delegat

3条回答
  •  长情又很酷
    2021-02-15 13:33

    I believe that "java.util.logging.LogManager" class initialisation happens before the moment when system properties are updated.

    So, you could make logging libraries available to the container classloader, and configure this system property for the whole container using environment variables or configuration files.

提交回复
热议问题