Apache?Log4j v2.6.2 發布

Log4j是Apache的一個開放源代碼項目,通過使用Log4j,我們可以控制日志信息輸送的目的地是控制臺、文件、GUI組件、甚至是套接口服務 器、NT的事件記錄器、UNIX Syslog守護進程等;我們也可以控制每一條日志的輸出格式;通過定義每一條日志信息的級別,我們能夠更加細致地控制日志的生成過程。最令人感興趣的就 是,這些可以通過一個配置文件來靈活地進行配置,而不需要修改應用的代碼。
更新日志
新特性
- LOG4J2-1395: Add "direct" option to ConsoleAppender for increased performance.
- LOG4J2-1437: (GC) ObjectMessage and ReusableObjectMessage now avoid calling toString() on auto-boxed primitive parameters.
- LOG4J2-1415: (GC) ParameterFormatter now avoids calling toString() on auto-boxed primitive message parameters.
- LOG4J2-1412: Unbox utility's ringbuffer of StringBuilders is now configurable.
Bugs修復
- LOG4J2-904: If copy and delete fails in rename action then resort to truncating the source file after copying it. Thanks to Bernhard Mähr.
- LOG4J2-1250: CronTriggeringPolicy was not properly setting the prevFileTime value for the PatternProcessor so file dates and times on rolled files were incorrect.
- LOG4J2-1452: Fixed issue where reusable messages broke flow tracing logic. Thanks to Mikael Ståldal.
- LOG4J2-1440: Fix bug in OnStartupTriggeringPolicy that allowed it to roll over on every reconfiguration. Added minSize attribute.
- LOG4J2-1414: Fixed minor issues with the 2.6.1 web site. Thanks to Ralph Goers.
- LOG4J2-1434: Ensure that the thread-local StringBuilders used by Layouts to format log events to text will not retain excessive memory after a large message was logged. Thanks to Luke Butters.
- LOG4J2-1418: Provide MessageFactory2 to custom Logger implementations.
- LOG4J2-1420: RollingRandomAccessFileManager was not properly rolling over on startup and was getting a NullPointerException.
- LOG4J2-1417: Fixed issue where Unbox utility ignored the value Constants.ENABLE_THREADLOCALS and always stored non-JDK classes in ThreadLocals.
- LOG4J2-1422: Fixed issue where AsyncAppenderQueueFullPolicyTest sometimes hangs.
- LOG4J2-1445: OnStartupTriggeringPolicyTest fails on Windows saying the file is used by another process. Thanks to Ludovic HOCHET.
改進:
- LOG4J2-1432: Update Jackson from 2.7.4 to 2.7.5.
- LOG4J2-1433: Update Jansi from 1.11 to 1.13.
- LOG4J2-1444: Update Apache Commons Compress from 1.11 to 1.12.
下載
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!