logback 1.1.7 发布了。该版本主要改进修复记录如下:
Logback is now compact3 profile compatible. This improvement was requested in LOGBACK-1071 by Axel Fontaine with Max Urech providing the relevant pull-request.
Fixed
ConcurrentModificationExceptionbeing thrown when thereset()method is invoked on theLoggerContextinstance. This issue was reported in LOGBACK-397 by Szczepan Faber with Ross Sargant providing the relevant test case.TimeBasedRollingPolicynow supports the totalSizeCap property which allows the user to limit the total size of archived logs.SizeAndTimeBasedRollingPolicyoffers the same functionality asSizeAndTimeBasedFNATPdid previously but with a simpler configuration structure.Archive removal by
RollingFileAppenderis now performed asynchronously.Unnecessary and incompatible %i token in fileNamePattern option with
RollingFileAppender/TimeBasedRollingPolicyis now detected and the user alerted to the misconfiguration problem. This fixes LOGBACK-1143.Joran can now handle logger names ending with a $, i.e. the first character in variable substitution. This issue was raised in LOGBACK-1149 by by Stevo Slavic.
下载地址:https://github.com/qos-ch/logback/releases/tag/v_1.1.7
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来访问日志的功能。
引用来自“TiMoLove”的评论
那么问题来了,到底是这货还是log4j2呢?虽然最后都是slf引用来自“TiMoLove”的评论
那么问题来了,到底是这货还是log4j2呢?虽然最后都是slf确实是slf接口就OK了
之前是因为log4j2原生flume appender
引用来自“分流砥柱”的评论
log4j2很好