General J2EE: Log4j versus java.util.logging
- Posted by: Vishal Revankar
- Posted on: August 04 2004 05:33 EDT
What would be the better option in case of logging. To use java's java.util.logging api as it is or to write a wrapper around log4j and use it. Can anybody give me the pro's and con's of the two ?
Thanks & Regards,
Try using Commons-logging APIs from Apache. This is nothing but a wrapper providing logging interface. you can switch between Log4j and JDK logging.
The article above is against logging API wrappers like Commons Logging. Anyway using Log4J is easy, and much more flexible than JDK1.4's logging...IMHO
Thanks a lot, Shiv & Allen.