During our last project we needed a logger but didn't want to develop our
own, so we looked for third-party logging APIs. We found a few and
experimented; one of them, log4j, far outshone the others. It helped us so
much in tracing and debugging our problems that we recommended it for other
projects, where it also got rave reviews.
This API was developed by IBM at their Zurich research lab
(www.zurich.ibm.com). Initially, IBM posted it on its alphaWorks Web site (
www.alphaworks.ibm.com), but has since moved it to an open source
organization, Source Forge (www.sourceforge.net). It can also be accessed at
www.log4j.org.
The Need for Tracing and Logging
Two methods are widely used for debugging: you can either step through the
code in a debug environment or you can add debug statements in your code, run
the code, and analyze the log generated. The problem with the fir... (more)