January 22, 2004
Logging

Given that we are starting a brand new project with Java 1.4, is there any reason to prefer log4j or commons-logging over java.util.logging?

Posted to Java by Simon Brunning at January 22, 2004 05:50 PM
Comments

I'd avoid commons-logging in this scenario. See http://radio.weblogs.com/0122027/2003/08/15.html#a81 for example.

Posted by: Rod Waldhoff on January 22, 2004 07:20 PM

Log4J as the most fully functional and flexible. Commons-logging is a hack. java.util.logging is fine for small scale apps, but still lacks log4j's features and flexibility.

Posted by: Brian McCallister on January 22, 2004 07:31 PM

Log4J. You'll regret using the others -- I know I did.

Posted by: Will Sargent on January 22, 2004 09:15 PM

Like every thrid party API, just wrap it in your own API so you can replace it later...

Posted by: Sam Newman on January 22, 2004 10:01 PM

Brian, commons-logging is not a "hack", it simply isn't a logging framework. commons-logging vs. log4j or j.u.logging is apples vs. oranges.

Posted by: Rod Waldhoff on January 22, 2004 11:06 PM
Post a comment
Name:


Email Address:


URL:



Comments:


Remember info?