开发者

Performance and Functionality Difference between log4j and Logging Util class

开发者 https://www.devze.com 2022-12-20 22:51 出处:网络
I am newbie for the logging class in Java.util package, I have developed 开发者_C百科an Application and want to implement the logging mechanism at different levels, I am just thinking to which one to

I am newbie for the logging class in Java.util package, I have developed 开发者_C百科an Application and want to implement the logging mechanism at different levels, I am just thinking to which one to go for and identify the differences between these 2. I am looking 1) logger should be easily maintainable, implementable. Can any one suggest on this.


java.util.logging is a poor API, on top of a poor implemention. Log4j is better in every measurable way.

If it's a new development, though, then there are better APIs than log4j, such as SLF4J, and better logging implementations, such as Logback. I would try those. Log4j is getting a bit long in the tooth, but it's perfectly serviceable.

0

精彩评论

暂无评论...
验证码 换一张
取 消