suchen

Heim  >  Fragen und Antworten  >  Hauptteil

Java日志log4j和slf4j怎么使用

1.会同时用两种形式打印日志

2.想要关闭一种,只用log4j的方式打印日志

如图片所示:通一条记录会通过log4j和jakartacommonsloggingimpl.debug

巴扎黑巴扎黑2888 Tage vor401

Antworte allen(1)Ich werde antworten

  • 大家讲道理

    大家讲道理2017-04-17 17:40:17

    你的日志都是log4j打的。如果我没有记错的话,那个JakartaCommonsLoggingImpl最后也是通过代理,代理到log4j打日志的。

    Antwort
    0
  • StornierenAntwort