手机版
你好,游客 登录 注册
背景:
阅读新闻

Apache Log4j 2.4.1 发布下载,Java 日志组件

[日期:2015-10-14] 来源:oschina.net  作者:Linux [字体:大 中 小]

Apache Log4j 2.4.1 发布下载,更新内容如下:

新特性:
o LOG4J2-1129:  Allow PatternLayout to select a pattern to use based on some selection criteria.

o LOG4J2-1145:  Add %equals to PatternLayout to test and replace patterns with strings. 
o LOG4J2-1147:  Add %equalsIgnoreCase to PatternLayout to test and replace patterns with strings.

o LOG4J2-1146:  Add %notEmpty to PatternLayout to avoid output of patterns where all variables
are empty. 
o LOG4J2-1020:  Add possibility to set shutdown timeout on AsyncAppender. 

修复Bugs:
o LOG4J2-1153:  Fixed NullPointerException when only root logger is defined (and no named
loggers) in configuration properties file. 
o LOG4J2-1140:  Fixed bug where headers were not being written to first file with RollingFileAppender.

o LOG4J2-1149:  Fixed bug where PatternLayout predefined date pattern with time zone always
renders default date format. 
o LOG4J2-1050:  Fixed Log4jLookup. 
o LOG4J2-1142:  Fix potential memory leak in web applications by using a straight ThreadLocal
field instead of subclassing ThreadLocal. 
o LOG4J2-1135:  Compression on rollover was broken: log file was renamed to .zip but not compressed.

o LOG4J2-1127:  log4j2.xml cannot be parsed on Oracle Weblogic 12c. 
o LOG4J2-1132:  Do not use MongoDB driver 2.13.3 deprecated methods. 
o LOG4J2-1144:  Add %markerSimpleName in pattern layout should evaluate to marker name (not
toString()). 
o LOG4J2-1126:  Web site corrections and updates. 

变化:
o LOG4J2-1151:  Performance improvement: backport Java 8 fast ISO-8859-1 String to byte[]
encoder to AbstractStringLayout. 
o LOG4J2-935:  Performance improvement when converting Strings to byte[] arrays. 
o LOG4J2-1040:  Update MongoDB driver from 2.13.3 to 3.0.4. 
o LOG4J2-1128:  Reuse StringBuilder to improve performance for String-based layouts: CSV,
GELF, HTML, RFC524, Syslog. 
o LOG4J2-1131:  Update mongo-java-driver from 2.13.2 to 2.13.3. 
o LOG4J2-1138:  Do not use Jackson deprecated methods. 
o LOG4J2-1139:  Update Jackson from 2.6.1 to 2.6.2. 
o LOG4J2-1150:  Update kafka-clients from 0.8.2.1 to 0.8.2.2.

更多改进内容请看发行说明。

Log4j是Apache的一个开放源代码项目,通过使用Log4j,我们可以控制日志信息输送的目的地是控制台、文件、GUI组件、甚至是套接口服务器、NT的事件记录器、UNIX Syslog守护进程等;我们也可以控制每一条日志的输出格式;通过定义每一条日志信息的级别,我们能够更加细致地控制日志的生成过程。最令人感兴趣的就 是,这些可以通过一个配置文件来灵活地进行配置,而不需要修改应用的代码。

使用Log4jdbc-log4j2监听MyBatis中运行的SQL和Connection  http://www.linuxidc.com/Linux/2014-05/102189.htm

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

Log4j 的详细介绍:请点这里
Log4j 的下载地址:请点这里

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-10/124099.htm

linux
相关资讯       Log4j 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款