How to send java.util.logging to log4j?

前端 未结 7 1335
囚心锁ツ
囚心锁ツ 2020-11-29 02:51

I have an existing application which does all of its logging against log4j. We use a number of other libraries that either also use log4j, or log against Commons Logging, wh

7条回答
  •  既然无缘
    2020-11-29 03:16

    you should manually add blew at startup

    SLF4JBridgeHandler.removeHandlersForRootLogger()
    SLF4JBridgeHandler.install()
    

    demo -> https://gist.github.com/jiahut/654ecc75a13b0a1d8f3b4d5d2d69dc6d

提交回复
热议问题