RSS Feed for This PostCurrent Article

Java: Alternatives for Log4j

Here are some alternative logging APIs for Log4j, other than the JDK Logging APIs.

LogBack

Logback is intended as a successor to the popular log4j project. It was designed by Ceki Gülcü, the founder of log4j. It builds upon experience gained in building industrial-strength logging systems going back as far as 1999.

Logback’s basic architecture is sufficiently generic so as to apply under different circumstances. At present time, logback is divided into three modules, logback-core, logback-classic and logback-access.

The logback-core module lays the groundwork for the other two modules. The logback-classic module can be assimilated to a significantly improved version of log4j. Moreover, logback-classic natively implements the SLF4J API so that you can readily switch back and forth between logback and other logging systems such as log4j or java.util.logging (JUL).

The logback-access module integrates with Servlet containers, such as Tomcat and Jetty, to provide HTTP-access log functionality. Note that you could easily build your own module on top of logback-core.

log5j

log5j is a modern logging facade built on top of Log4j.

It is no long required to give log4j the category when creating a new class level logger. Log5j just figures it out from the call stack, and it provides sprintf support for logging messages


Trackback URL


RSS Feed for This Post1 Comment(s)

  1. Daniel P | Nov 26, 2009 | Reply

    2 more alternatives could be Simple Logging Facade for Java (SLF4J) (http://slf4j.org/) and Atlassian JIRA (http://www.atlassian.com/software/jira/)

Sorry, comments for this entry are closed at this time.