设为首页 收藏本站
查看: 1478|回复: 0

[软件发布] Log4j 2.5 发布,Java 日志组件

[复制链接]

尚未签到

发表于 2015-12-25 09:40:22 | 显示全部楼层 |阅读模式
欢迎加入运维网交流群:263444886   DSC0000.jpg
DSC0001.png   Log4j 2.5 发布,此版本是第九个 GA 版本,包括一些 bug 修复和新特性。新特性包括在 file rollover 的时候指定删除操作;一个基于 CRON 的触发策略;过滤器支持 JSR 223 脚本,模式选择器和删除操作,新增一个策略移除 RoutingAppender 的闲置输出源。
  Log4j 2 最低要求 Java 7。
  
  Log4j 2.5 改进列表:
  新特性:
  o LOG4J2-435:  Added support for custom delete actions triggered by a rollover. Thanks to
  Robert Schaft.
  o LOG4J2-89:  Allow rollover to occur at any time. Add CronTriggeringPolicy.
  o LOG4J2-1136:  Add support for JSR 223 scripts in filters and the PatternSelector.
  o LOG4J2-1168:  Add getters for source and destination file in file rename action. Thanks
  to Steven Swor.

  o LOG4J2-1175:  Add getters for>  o LOG4J2-898:  Added system property to allow users to control whether messages should be
  formatted in the background.
  o LOG4J2-1178:  Support use-case for JDBC's CommonDataSource.setLogWriter(PrintWriter) and
  java.sql.DriverManager.setLogWriter(PrintWriter).
  o LOG4J2-1187:  Support use case for java.sql.DriverManager.setLogStream(PrintStream).
  
  Bugs 修复:
  o LOG4J2-324:  Reduced memory usage of status messages in bounded queue; support zero-length
  queue that stores no messages.
  o LOG4J2-1173:  Fixed rollover error when copying to a directory mapped to a remote Linux
  host.
  o LOG4J2-1195:  Make KafkaAppender support SerializedLayout. Thanks to Melvin Du.
  o LOG4J2-381:  Allow triggering policy and rollover strategy to be modified during reconfiguration.
  Thanks to Anthony Baldocchi.
  o LOG4J2-1029:  Performance improvement when gathering location information. Thanks to Stefan
  Leonhartsberger.
  o LOG4J2-1172:  Fixed ThreadLocal leak [AsyncLogger$Info] on Tomcat when using AsyncLoggerContextSelector.
  o LOG4J2-1176:  Fixed memory leak when log4j jars are in Tomcat's lib folder.
  o LOG4J2-1180:  Logger cache does not account for message factory. Thanks to Mikael Ståldal.
  o LOG4J2-879:  Documentation: fixed minor issues with the site and manual pages.
  o LOG4J2-999:  RollingFileAppender should also roll over when log event time is equal to rollover
  time, not only when later. Thanks to Joan Balagueró.
  o LOG4J2-873:  Fixed bug where omitting the  element in web.xml caused
  incorrect log4j initialization,

  resulting in memory leaks when the web application was stopped or>  to Martin Dickins, LC, Luke Woodward.
  o LOG4J2-323:  Better web app support for async loggers: Fixed a memory leak that occurred
  when the logging jars are placed

  in the container's>  The problem was that the first web application started the Disruptor background thread
  [AsyncLoggerConfig-1] but did not stop it until all web apps are stopped.
  Each web application now has its own Disruptor which is stopped/started together with
  the web app.
  o LOG4J2-493:  Better web app support for async loggers: it is now possible to place the logging
  jars in the container's

  >  This fixes a problem where
  logging would stop working after stopping and restarting a web application.
  o LOG4J2-1171:  Use servlet context name for logger context name when available.
  o LOG4J2-1159:  Fixed a ThreadLocal memory leak in Tomcat8 that mentions AsyncLoggers when
  Async Loggers are not used.
  o LOG4J2-1166:  AbstractConfiguration executor should use a DaemonThreadFactory.
  o LOG4J2-1165:  Improve Log4j initialization status messages.
  o LOG4J2-1156:  Web site corrections and updates.
  o LOG4J2-1158:  Log4J JUL adapter is using MessageFormat on String passed by java.util.function.Supplier.
  Thanks to Michael Fortin, Gary Gregory.
  o LOG4J2-801:  org.apache.logging.log4j.core.Logger should be serializable.

  o LOG4J2-1157:  Fix compilation error for>  Bartels.
  o LOG4J2-948:  Fix plugin documentation error about Converters. Thanks to Andrew Flower.
  o LOG4J2-1193:  Prefix all thread names Log4j creates with "Log4j2-".
  o LOG4J2-1194:  Documentation does not match parameters for LoggerNameLevelRewritePolicy.
  Thanks to Adam Brin.
  o LOG4J2-1196:  MongoDbConnection does not close MongoClient. Thanks to René Zanner.
  
  改进:

  o LOG4J2-649:  Add PurgePolicy and>  o LOG4J2-1202:  Remove ConfigurationMonitor. The WatchManager is now used to check for configuration
  changes.
  o LOG4J2-1174:  Update Jackson from 2.6.2 to 2.6.3.
  o LOG4J2-1207:  Update kafka-clients from 0.8.2.2 to 0.9.0.0.
  
DSC0002.jpg
  Log4j是Apache的一个开放源代码项目,通过使用Log4j,我们可以控制日志信息输送的目的地是控制台、文件、GUI组件、甚至是套接口服务 器、NT的事件记录器、UNIX Syslog守护进程等;我们也可以控制每一条日志的输出格式;通过定义每一条日志信息的级别,我们能够更加细致地控制日志的生成过程。最令人感兴趣的就是,这些可以通过一个配置文件来灵活地进行配置,而不需要修改应用的代码。
  在线Javadoc:http://tool.oschina.net/apidocs/apidoc?api=log4j-1.2.16

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-156019-1-1.html 上篇帖子: Sentry 8.0.0 下篇帖子: Proxmox 4.1 "Virtual Environment" 发布
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表