Apache Log4j v 2.6.1 发布下载,Log4j是Apache的一个开放源代码项目,通过使用Log4j,我们可以控制日志信息输送的目的地是控制台、文件、GUI组件、甚至是套接口服务 器、NT的事件记录器、UNIX Syslog守护进程等;我们也可以控制每一条日志的输出格式;通过定义每一条日志信息的级别,我们能够更加细致地控制日志的生成过程。最令人感兴趣的就 是,这些可以通过一个配置文件来灵活地进行配置,而不需要修改应用的代码。
更新日志
- Fix OnStartupTriggeringPolicy was forcing a rollover of empty files at startup and would append a second footer that was added by the prior shutdown. Fixes LOG4J2-1405.
- Fix Fixed bug in ReusableParameterizedMessage where Throwable was never updated so first error was logged over and over again and subsequent errors were not logged. Fixes LOG4J2-1406. Thanks to Trask Stalnaker.
- Fix Fixed ArrayIndexOutOfBoundsException that may occur in ReusableParameterizedMessage. Fixes LOG4J2-1409. Thanks to Shahan.
- Fix Add filter and remove filter were not working properly in AbstractFilterable. Fixes LOG4J2-997. Thanks to Maytee Chinavanichkit.
- Fix Change RenameAction to use java.nio to better report rename failures. Fixes LOG4J2-1032.
- Fix Misleading WARN log events from Log4j about message factories and unexpected formatting. Fixes LOG4J2-1407. Thanks to Gary Gregory.
- Fix The module log4j-liquibase is missing from BOM POM. Fixes LOG4J2-1408. Thanks to Gary Gregory.
- Fix Logger cache does not account for message factory. Fixes LOG4J2-1180. Thanks to Gary Gregory.
- Fix Fix regression in properties configuration to support arbitrary component ids. Fixes LOG4J2-1402.
- Update (GC) CSV layouts should not create a new CSVPrinter for each log event. Requires Apache Commons CSV 1.4. Fixes LOG4J2-1385.
- Update Update liquibase-core from 3.4.2 to 3.5.1. Fixes LOG4J2-1398.
- Update Update Apache Commons CSV from 1.3 to 1.4. Fixes LOG4J2-1399.
- Add Add documentation about plugin builders compared to factories. Fixes LOG4J2-1411.
下载
-
apache-log4j-2.6.1-bin.tar.gz
- Source code (zip)
- Source code (tar.gz)
更多Log4j相关教程见以下内容:
Log4j配置详解 http://www.linuxidc.com/Linux/2014-10/108401.htm
Apache Log4j 2 更多内容请看: http://logging.apache.org/log4j/2.x/
Log4j入门使用教程 http://www.linuxidc.com/Linux/2013-06/85223.htm
Log4j 日志详细用法 http://www.linuxidc.com/Linux/2014-09/107303.htm
Hibernate配置Log4j显示SQL参数 http://www.linuxidc.com/Linux/2013-03/81870.htm
Log4j学习笔记(1)_Log4j 基础&配置项解析 http://www.linuxidc.com/Linux/2013-03/80586.htm
Log4j学习笔记(2)_Log4j配置示例&Spring集成Log4j http://www.linuxidc.com/Linux/2013-03/80587.htm