发布于 2016-03-01 04:03:17 | 300 次阅读 | 评论: 0 | 来源: 网友投递
logback 日志组件
Logback是由log4j创始人设计的又一个开源日志组件。logback当前分成三个模块:logback-core,logback- classic和logback-access。logback-core是其它两个模块的基础模块。logback-classic是log4j的一个 改良版本。此外logback-classic完整实现SLF4J API使你可以很方便地更换成其它日志系统如log4j或JDK14 Logging。logback-access访问模块与Servlet容器集成提供通过Http来访问日志的功能。
logback 1.1.6 发布了,该版本改进内容包括:
LogbackValve
(in logback-access) now attempts to load the configuration file as a resource if it cannot be found on the filesystem (LOGBACK-1069). This is helpful in scenarios where applications are using an embedded Tomcat server.
JMXConfigurator.reloadDefaultConfiguration()
method now tolerates programmatic configuration without a URL. This change was provided by Vedran Pavic in PR 302.
RollingFileAppender
will output an error message if the date time pattern in the %d token within the fileNamePattern is not collision free. This fixes LOGBACK-1137. In a similar vein, every instance of FileAppender
will now detect if it shares the same File option value as given for an appender defined earlier. In addition, RollingFileAppender
instances now check for colliding FileNamePattern values.
Fixed NullPointerException
thrown by RollingFileAppender
if the name of the rollover target path did not contain a parent. This issue was reported in LOGBACK-1054 by Paulius Matulionis. Analysis of the problem and the relevant PR was provided by Ferenc Palkovics.
BasicConfigurator.configure
method call executes significatly faster. Improved documentation for configuration using JDK 1.6 service-provider facility. These changes are in response to LOGBACK-1141 requesting faster logback start-up time.
Fixed issue with variable substitution with the value ending in a colon. This problem was reported in LOGBACK-1140 by Eric Cook.
下载地址:
https://github.com/qos-ch/logback/releases/tag/v_1.1.6