Performance and Functionality Difference between log4j and Logging Util class
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.
精彩评论