简体   繁体   中英

Performance and Functionality Difference between log4j and Logging Util class

I am newbie for the logging class in Java.util package, I have developed 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM