java 哪些 Log4j 替代日志库可用?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3042450/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 00:04:32  来源:igfitidea点击:

What Log4j alternative logging libraries are available?

javalogging

提问by Derek Mahar

What logging libraries do you recommend as alternatives to Log4j? Do these libraries work with Spring and Hibernate? Are they compatible with Slf4jor Jakarta Commons Logging?

您推荐哪些日志库作为Log4j 的替代品?这些库是否适用于 Spring 和 Hibernate?它们与Slf4jJakarta Commons Logging兼容吗?

回答by Paul Gregtheitroade

slf4j allows you to use just about all the other logging frameworks at once. Juli, Commons, Log4j etc.. As an output framework to use with slf4j instead of Log4j, I would suggest Logback http://logback.qos.ch/which is written and maintained by the creator of Log4j.

slf4j 允许您一次使用几乎所有其他日志框架。Juli、Commons、Log4j 等。作为与 slf4j 而不是 Log4j 一起使用的输出框架,我建议使用 Logback http://logback.qos.ch/,它由 Log4j 的创建者编写和维护。

回答by Derek Mahar

Java Sourcepublishes a list of open source logging libraries.

Java Source发布了一个开源日志库列表。