Log4j 是一个死项目吗?
最近,我在自己从事的一个项目中遇到了一些麻烦,由于混合了来自不同开源项目的不同 JAR,这是 Log4j、Slf4j 和 Commons-Logging 的“混合体”。
我看到越来越多的操作系统项目慢慢转向 Slf4j。 Logback 似乎是 Log4j 的继承者。我认为它实际上是一个分支,但由于 Log4j 1.3 预计不会有进一步的开发,而 Log4j 2.0 是一个实验性开发,不知道它是否会离开该状态......我想知道!
Log4j 死了吗?
I recently ended up in a bit of a mess on one of the projects I work on, a "mélange" of Log4j, Slf4j and Commons-Logging due to mixing different JARs from different open source projects.
I see more and more OS projects slowly moving to Slf4j. Logback seems to be the successor of Log4j. I think it's actually a fork, but since no further development are anticipated for Log4j 1.3 and Log4j 2.0 is an experimental development and don't know if it will ever leave that state... I wonder!!!
Is Log4j dead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不。
成熟、完整、稳定——这些都不是“死”的同义词。
已弃用、已取代 - 也许这就是您的意思? Log4j 是否被 Slf4j 取代?鉴于 Slf4j 为 Log4j 实现了 wrapper ...可能不是。这只是使用 Log4j 的另一种方式。
Log4j 强大、稳定、被广泛接受并在全球生产中使用。
Logback 旨在成为 Log4j 的继任者,但尚未获得同等的曝光。 Slf4j 允许您抽象出日志框架。
No.
Mature, complete, stable - none of these are synonyms for "dead".
Deprecated, superceded - perhaps this is what you meant? Is Log4j superceded by Slf4j? Given that Slf4j implements a wrapper for Log4j... probably not. It's just an alternative way to use Log4j.
Log4j is robust, stable, widely accepted and in production use across the globe.
Logback is intended to be a successor for Log4j but has not yet had equivalent exposure. Slf4j allows you to abstract out the logging framework.