Apache Log4j 2.0-rc1 发布,这是第十二个发布版本,而且是 Log4j 2 的第一个 RC 版本。此版本主要是 bug 修复和功能增强。此版本向后兼容之前的版本。主要更新内容如下:

New features:
o LOG4J2-530:  (JMX) JMX Client GUI should dynamically update when LoggerContext MBeans are
registered/unregistered in MBean server.
o LOG4J2-479:  ThreadContext now uses plain ThreadLocal by default, unless system property
isThreadContextMapInheritable has value "true". Thanks to MK.
o LOG4J2-481:  Add Stream interface to Loggers. Thanks to Matt Sicker.
o LOG4J2-482:  Documentation fix: The attribute of Route to refer to an appender is "ref"
not "AppenderRef". Thanks to Hongdi Ren.
o LOG4J2-467:  Added option to toggle Thread name caching in AsyncLogger. Thanks to Anthony
Baldocchi.
o LOG4J2-423:  Added MBeans for instrumenting AsyncAppenders and AsyncLogger RingBuffers,
exposing queue size, remaining capacity and other attributes.
o LOG4J2-420:  Create a lookup for resource bundle substitution.
o LOG4J2-415:  Format log event time as UNIX time (seconds or milliseconds).
o LOG4J2-401:  Configure FileAppender buffer size.
o LOG4J2-402:  Configure RandomAccessFileAppender buffer size. Fixed Bugs:
o LOG4J2-500:  (JMX - ObjectNames changed!) Unloading one web application unloads JMX MBeans
for all web applications.
o LOG4J2-531:  Fixed bugs where rolled log files were overwritten by RollingFile appender
with composite time and size based policies. Thanks to Geoff Ballinger.
o LOG4J2-475:  Changed the MongoDBConnection to add a MongoDB encoding hook instead of a decoding
hook. Thanks to Matt Sicker.
o LOG4J2-489:  Fixed the JPAAppender's overuse of transactions by connecting (borrowing from
pool) on new write internal or on flush.
o LOG4J2-457:  Fixed failure of JDBC and JPA appender to properly release database connections
by connecting (borrowing from pool) on new write internal or on flush.
o LOG4J2-442:  Fixed problem with JDBC and JPA appender connectivity in WebSphere by connecting
(borrowing from pool) on new write internal or on flush.
o LOG4J2-438:  Ensured the JDBCAppender commits transactions after a single write or a flush
of multiple writes.
o LOG4J2-407:  Fixed inability to recover from lost database connection in database appenders
by connecting (borrowing from pool) on new write internal or on flush.
o LOG4J2-511:  Stop AsyncLoggerConfig Disruptor thread(s), then AsyncAppender thread(s) first
before stopping other appenders. Thanks to James Pretorius.
o LOG4J2-392:  Stop AsyncLoggerConfig Disruptor thread(s), then AsyncAppender thread(s) first
before stopping other appenders. Thanks to ilynaf, Andre Bogus.
o LOG4J2-345:  (OSGi) logging.log4j-1.2-api doesn't export the log4j API 1.2. Dependent bundles
can not be resolved. Thanks to Roland Weiglhofer, Matt Sicker.
o LOG4J2-523:  LocalizedMessage serialization is broken.
o LOG4J2-385:  Fixed issues with time-based file rollover (monthly, weekly, hourly and every
minute). Thanks to Ace Funk, Porfirio Partida.
o LOG4J2-452:  Added a ServletContext attribute that, when set to "true", disables Log4j's
auto-initialization in Servlet 3.0+ web applications.
o LOG4J2-512:  Exposed Log4j web support interface and methods and the LoggerContext through
ServletContext attributes so that threads not affected by filters (such as asynchronous threads)
can utilize the LoggerContext. Also updated the Log4j filter so that it supports async. Thanks
to Chandra Sekhar Kakarla, Matt Sicker.
o LOG4J2-409:  Created a utility to properly escape backslashes before creating URIs, and
changed URI creation to use the utility instead of instantiating URI directly. Thanks to Frank
Steinmann, Thomas Neidhart.
o LOG4J2-344:  Changed the Servlet 3.0 auto-initializer to add the filter by class to get
around a WebLogic bug. Thanks to Keir Lawson, Tomasz Wladzinski.
o LOG4J2-359:  Changed the Servlet 3.0 auto-initializer so that it does nothing in a Servlet
2.5 or older application. This ensures behavioral consistency across containers. This includes
additional fixes to abort initialization if a duplicate filter already exists and to check
the actual Servlet EFFECTIVE version. Thanks to Abhinav Shah.
o LOG4J2-517:  Switch in log4j-1.2-api Category.getEffectiveLevel has no cases for FATAL,
OFF.
o LOG4J2-406:  (JMX) Unregister all log4j JMX MBeans when the LoggerContext is stopped to
allow web application classes to be GC-ed on undeploy. Thanks to Kerrigan Joseph.
o LOG4J2-405:  Configuration was being processed twice at startup.
o LOG4J2-398:  Configure properties and setup Interpolator before processing rest of configuration.o LOG4J2-470:  hostName property was not being set until after the first configuration element.o LOG4J2-464:  Support arrays as sub-elements of a JSON configuration.
o LOG4J2-492:  (JMX) Fixed MalformedObjectNameException if context name contains '=' or newline
characters. Thanks to Shaddy Baddah, Herlani Junior.
o LOG4J2-377:  (OSGi) Fix NPE during shutdown. Thanks to Roland Weiglhofer, Matt Sicker.
o LOG4J2-463:  Fixed documentation for MyApp example application in the Automatic Configuration
section Thanks to Michael Diamond, Matt Sicker.
o LOG4J2-408:  Fixed error in documentation code example in manual/eventlogging.html Thanks
to Dongqing Hu, Matt Sicker.
o LOG4J2-451:  Fixed typo in documentation: system property should be log4j2.loggerContextFactory
Thanks to Vinay Pothnis, Matt Sicker.
o LOG4J2-443:  Fixed issue where log4j2 LoggerContext did not show up in JMX GUI or JConsole.
Thanks to Colin Froggatt, Tudor Har.
o LOG4J2-485:  Fixed issue where toString methods that perform logging could deadlock AsyncAppender.o LOG4J2-445:  ResolverUtil cannot find packages in file URLs which include the '+' character.
Thanks to Anthony Baldocchi.
o LOG4J2-430:  Use the formatted Message in RFC5424Layout for non-StructuredDataMessages.
Thanks to David Gstir.
o LOG4J2-459:  Set external context when constructing the LoggerContext.
o LOG4J2-466:  Cannot load log4j2 config file if path contains plus '+' characters. Thanks
to Jan Tepke.
o LOG4J2-462:  Fix LogEvent to never return null Level, fixes LevelPatternConverter.format
may throw NPE. Thanks to Daisuke Baba.
o LOG4J2-465:  Fix LogEvent to never return null Level, fixes ThresholdFilter throws NPE.
Thanks to Daisuke Baba.
o LOG4J2-471:  Fixed issue where toString methods that perform logging could deadlock AsyncLogger.
Thanks to Anthony Baldocchi.
o LOG4J2-478:  The message and ndc fields are not JavaScript escaped in JSONLayout. Thanks
to Michael Friedmann..
o LOG4J2-455:  RingBufferLogEvent should return Message timestamp for TimestampMessage messages.
Thanks to Robin Zhang Tao.
o LOG4J2-477:  NPE in ClassLoaderContextSelector. Thanks to Tal Liron.
o LOG4J2-454:  TimeBasedTriggeringPolicy should use event time millis. Thanks to Robin Zhang
Tao.
o LOG4J2-472:  BaseConfiguration class does not properly implement Configuration interface.
Thanks to Tal Liron.
o LOG4J2-447:  XMLLayout does not include marker name. Thanks to Jeff Hudren, Mark Paluch,
Scott Deboy.
o LOG4J2-323:  Resolved memory leak by releasing reference to ThreadLocal when AsyncLogger
is stopped.
o LOG4J2-425:  Resolved memory leak by populating AsyncLoggerConfigHelper ring buffer via
EventTranslatorTwoArg, eliminating the need for a ThreadLocal.
o LOG4J2-417:  Fix Event Level / LoggerConfig Level table at the architecture documentation
page.
o LOG4J2-404:  @EnterpriseNumber" was missing in the ID of structured data when RFC5424Layout
is used Thanks to Kamal Bahadur.
o LOG4J2-379:  Fixed issue that prevented Log4J from working in Google App Engine. Changes:
o Renamed the org.apache.logging.log4j.core.appender.db.nosql.mongo package to org.apache.logging.log4j.core.appender.db.nosql.mongodb.o Renamed the org.apache.logging.log4j.core.appender.db.nosql.couch package to org.apache.logging.log4j.core.appender.db.nosql.couchdb.o LOG4J2-507:  Space Level numbers by 100 instead of 1.
o LOG4J2-41:  Add support for custom logging levels. Thanks to Nick Williams.
o LOG4J2-490:  Update EasyMock to version 3.2. Thanks to Matt Sicker.
o LOG4J2-453:  Update Flume Appender to use Flume 1.4.0.
o LOG4J2-528:  Rename package org.apache.logging.log4j.core.appender.rolling.helper to org.apache.logging.log4j.core.appender.rolling.action.o LOG4J2-532:  Resource leak in Flume appender when it cannot create a BerkeleyDB db. Apache Log4j 2.0-rc1 requires a minimum of Java 6 to build and run. Basic compatibility with
Log4j 1.x is provided through the log4j-1.2-api component, however it does not implement some
of the very implementation specific classes and methods. The package names and Maven group
ID have been changed to org.apache.logging.log4j to avoid any conflicts with Log4j 1.x.

Apache Log4j 2.0-rc1 发布相关推荐

  1. Apache Kafka 3.0 版本发布

    Apache Kafka 3.0 发布, 发布日志:Kafka 我很高兴代表 Apache Kafka® 社区宣布 Apache Kafka 3.0 的发布.Apache Kafka 3.0 是一个涉 ...

  2. .NET for Apache Spark 1.0 版本发布

    .NET for Apache Spark 1.0 现已发布,这是一个用于 Spark 大数据的 .NET 框架,可以让 .NET 开发者轻松地使用 Apache Spark. 该软件包由微软和 .N ...

  3. 谷歌AI掌门人Jeff Dean获冯诺依曼奖;微软计划自研PC和服务器芯片;Ruby 3.0 RC1发布|极客头条...

    整理 | 郑丽媛 头图 | CSDN 下载自东方 IC 快来收听极客头条音频版吧,智能播报由出门问问「魔音工坊」提供技术支持. 「极客头条」-- 技术人员的新闻圈! CSDN 的读者朋友们早上好哇,「 ...

  4. 雷军:小米有机会重返世界前三;苹果为 Siri 泄露隐私事件致歉;Apache Tomcat 9.0.24 发布 | 极客头条...

    快来收听极客头条音频版吧,智能播报由标贝科技提供技术支持. 「CSDN 极客头条」,是从 CSDN 网站延伸至官方微信公众号的特别栏目,专注于一天业界事报道.风里雨里,我们将每天为朋友们,播报最新鲜有 ...

  5. 8月29日科技资讯|雷军:小米有机会重返世界前三;苹果为 Siri 泄露隐私事件致歉;Apache Tomcat 9.0.24 发布

    「CSDN 极客头条」,是从 CSDN 网站延伸至官方微信公众号的特别栏目,专注于一天业界事报道.风里雨里,我们将每天为朋友们,播报最新鲜有料的新闻资讯,让所有技术人,时刻紧跟业界潮流. 整理 | 胡 ...

  6. Maven 3.0 RC1 发布

    近日,Maven 3.0 RC1 版本发布了!此次主要是用于测试,你可以点击以下链接下载:https://repository.apache.org/content/repositories/mave ...

  7. Apache Tomcat 7.0.93 发布,开源 Java Web 应用服务器

    Apache Tomcat 7.0.93 已发布,Tomcat 是 Java Servlet.JavaServer Pages.Java 表达式语言和 Java WebSocket 技术的开源实现,是 ...

  8. .NET Core 3.0 RC1 发布,最终版本将于下周发布

    .NET Core 3.0 RC1 已经发布,最终版本将于下周 9 月 23 日发布.此版本包括 .NET Core 3.0.0 RC1 和 .NET Core SDK 3.0.100 RC1. Vi ...

  9. Apache Solr 4.0今日发布

    经过了三年的开发努力,Apache Solr Server 4.0终于发布了. Apache Solr是流行的,速度极快,开源的NoSQL的搜索平台,来自于Apache Lucene项目.它的主要功能 ...

  10. Apache ShardingSphere 4.0.0-RC2发布

    处暑无三日,新凉直万金.处暑之日,Apache ShardingSphere 4.0.0-RC2已经发布,欢迎测试使用! 本次发布的4.0.0-RC2版本将前不久发布的4.0.0-RC1版本的核心功能 ...

最新文章

  1. IntelliJ IDEA中用快捷键自动创建测试类
  2. 『模板 高精度计算』
  3. 软件测试作业5:计算下列代码片段的 Halstead 复杂度的11项内容
  4. Liferay Portal学习笔记-coldTear
  5. Oracle数据库-主键(primary key)、外键(foreign key)、候选键(candidate key)、超键(super key)和references总结...
  6. Oracle 20c 新特性:XGBoost 机器学习算法和 AutoML 的支持
  7. 魅族管理层换血?官方回应:信息被错误解读 黄章仍为最大股东
  8. cck8graphpad作图_Graphpad Prism 的 4 个隐藏技能助你轻松发表 SCI
  9. ArcGIS for iOS 开发系列(3) – 基础篇-“Hello World Map”
  10. 优化算法|蚁群算法的理解及实现
  11. jenkins k8s 动态增减 jenkins-salve (1) 制作部署jenkins-master 镜像
  12. 大数据下机械智能诊断的机遇与挑战,阅读文献系列(一)
  13. 如何用python获取文献_[python]eutilities获取文献题录
  14. 滴水逆向学习笔记 -1-
  15. bootstrap显示遮罩层
  16. 原生jq下载文件的方式
  17. c 语言生成一个随机4位数,PLC如何产生一个随机数(含代码)
  18. MyBatis 源码阅读 -- 核心操作篇
  19. PS | 文字自适应箱子物体形状, 利用滤镜消失点给纸箱加文字
  20. 使用python自动发邮件(163、QQ、outlook邮箱)

热门文章

  1. Xposed 反检测
  2. 空间中两随机向量间夹角的概率密度分布(越高维,越趋向于正交)
  3. 从知识溢出的视角分析开放式协作
  4. 自签发SSL证书签发生成过程
  5. 《Real-Time Rendering》第四版学习笔记——Chapter 9 Physically Based Shading(二)
  6. 企业级Docker容器镜像仓库Harbor的搭建
  7. linux网桥实现代码走读
  8. 曙光服务器重装系统centos7.9
  9. 四川2021高考体考成绩查询,2021年四川体育专业考试成绩查询网址:https://www.sceea.cn/...
  10. WIFI模块接入ONENET步骤