How to send java.util.logging to log4j?

前端 未结 7 1379
囚心锁ツ
囚心锁ツ 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:18

    The slf4j site I believe has a bridge for passing java.util.logging events via slf4j (and hence to log4j).

    Yes, the SLF4J download contains jul-to-slf4j which I believe does just that. It contains a JUL handler to pass records to SLF4J.

提交回复
热议问题