问答详情
源自:-

log4j 的问题

为什么单元测试的时候,我的 log4j 不起作用?

log4j:WARN No appenders could be found for logger (org.springframework.test.context.junit4.SpringJUnit4ClassRunner).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.


提问者:reidlin 2016-05-25 14:47

个回答

  • 木尘子
    2016-12-05 21:40:35

    看到有人说过将日志级别改为debug