Apache LOG4J 2.11.0 发布,Java 日志组件

来源: 投稿
作者: 周其
2018-03-18

Apache Log4j 是一个众所周知的用于记录应用程序行为的框架。 Log4j 2是对Log4j的升级,可提供重大改进,超越其前身Log4j 1.x,并提供许多其他现代功能 ,例如对标记的支持,使用查找的属性替换等等。

更新内容:

  • As of Log4j 2.9.0, the Log4j API was modified to use

  • java.util.ServiceLoader to locate Log4j implementations, although the former binding mechanism is still supported. The Log4j API jar is now a

  • multi-release jar to provide implementations of Java 9 specific classes.

  • Multi-release jars are not supported by the OSGi specification so OSGi

  • modules will not be able to take advantage of these implementations but will not lose functionality as they will fall back to the implementations used in Java 7 and 8. More details on the new features and fixes are itemized below. Note that some tools are not compatible with multi-release jars and may fail trying to process class files in the META-INF/versions/9 folder. Those errors should be reported to the tool vendor.

完整内容请查看发布主页

下载地址:https://logging.apache.org/log4j/2.x/

展开阅读全文
2 收藏
分享
加载中
最新评论 (3)
log4j 2 会一些问题, 按时间分割的时候会出现,日志写入错乱的问题
2018-03-19 12:05
0
回复
举报
日志不是用kafka的吗?这个和kafka怎么整合?
2018-03-18 16:21
0
回复
举报
支持按日期输出文件,保留固定的文件数吗?
2018-03-18 09:23
0
回复
举报
更多评论
3 评论
2 收藏
分享
返回顶部
顶部