红联Linux门户
Linux帮助

SLF4J 1.7.13发布,Java日志组件

发布时间:2015-11-12 09:19:59来源:红联作者:empast
SLF4J 1.7.13 发布,此版本主要改进内容如下:

Fixed LoggerFactory initialisation problem in presence of SecurityManager denying "createSecurityManager" runtime permission. See SLF4J-324 for further details.

Fixed issue with BasicMDCAdapter leaking MDC information to non-child threads. This problem was reported by Lukasz Cwik in SLF4J-316 who also provided the relavant pull request.

More robust handling of ill-formatted input strings by SLF4JBridgeHandler. This issue was reported in SLF4J-337 by Rodolfo Udo Labsch.

House cleaning of our project's Maven pom.xml files, an initiative undertaken by Jeremy Landis.

Added getAdditivity() method method in Category class in the log4j-over-slf4j module. This addition was requested by Milo Felipe SLF4J-309 with Dimitrios Liapis providing the relavant pull request.

Added the assertLog(boolean, String) method in the Category class, in module log4j-over-slf4j.

In the log4j-over-slf4j module, removed misplaced Layout.java file. This issue was reported in SLF4J-218 by Joshua M Steward with Alfredo Ramos providing the relavant pull request.

SLF4J是为各种loging APIs提供一个简单统一的接口,从而使得最终用户能够在部署的时候配置自己希望的loging APIs实现。 Logging API实现既可以选择直接实现SLF4J接的loging APIs如: NLOG4J、SimpleLogger。也可以通过SLF4J提供的API实现来开发相应的适配器如Log4jLoggerAdapter、 JDK14LoggerAdapter。

著名的MINA就是采用此日志组件。

在线Javadoc:http://tool.oschina.net/apidocs/apidoc?api=slf4j

下载地址:http://www.slf4j.org/dist/slf4j-1.7.13.tar.gz

来自:开源中国社区
文章评论

共有 0 条评论