The trace level was added to log4j in version 1.2.12 released on August 29, 2005. The trace level was added to the SLF4J API in version 1.4.0 on May 16th, 2007. Thus, starting with SLF4J 1.4.0, the log4j binding for SLF4J requires log4j version 1.2.12 or above.
However, as reported in issue 59, in some environments it may be difficult to upgrade the log4j version. To accommodate such circumstances, SLF4J's Log4jLoggerAdapter will map the TRACE level as DEBUG.
本文介绍了SLF4J API版本1.4.0中新增的trace级别,并指出为了兼容此级别,SLF4J绑定的Log4J版本需要升级到1.2.12或更高版本。考虑到部分环境中升级Log4J版本存在困难,SLF4J通过其Log4jLoggerAdapter将trace级别映射为debug级别。
1461

被折叠的 条评论
为什么被折叠?



