How to send java.util.logging to log4j?

前端 未结 7 1380
囚心锁ツ
囚心锁ツ 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条回答
  •  猫巷女王i
    2020-11-29 03:08

    One approach I have used successfully is to use slf4j as my primary logging API. I then have slf4j bind to log4j. 3rd party dependencies using other frameworks (like JUL) can be bridged to slf4j.

提交回复
热议问题