http://logging.apache.org/log4j/1.2/images/logo.jpg

What is it?

Log4j is a fast and flexible framework for logging application debugging messages.

With log4j it is possible to enable logging at runtime without modifying the application binary. The log4j package is designed so that these statements can remain in shipped code without incurring a heavy performance cost. Logging behavior can be controlled by editing a configuration file, without touching the application binary.

Future developments

Ceki Gülcü, the founder of the log4j project, is currently working on a successor called logback (licensed under GNU LGPL). However, development of log4j goes on. See this posting.

According to Curt Arnold (posting of Jun 5, 2007):

Development on log4j 1.3 has effectively ended in preference for working on log4j 2.0 designed for JDK 1.5 and higher and continued support of log4j 1.2 for existing applications and earlier JDKs. log4j 1.3 was stuck in having too many compatibility issues to be just a dot release but not a radical enough change to address some long standing issues. Many months of work were done to improve the compatibility between log4j 1.3 and log4j 1.2, but many hard issues still remained. It seemed better to bring features originally designed for log4j 1.3 back so they could be used with deployed log4j 1.2 versions and move on to something for the modern era. Some early experiments for log4j 2.0 are in the sandbox, but it hasn't been built out to a functioning framework yet.

logback does position itself as a migration path for log4j users. The development model, design objectives and licenses differ between logback and log4j and the resulting products will have different strengths. As a log4j core developer, I feel that I can't become intimately familiar with logback code due to its license and the potential repercussions of an accidental code leakage into log4j, so I'm not going to be in a position to give a point by point comparison on logback and log4j 1.2 or log4j 2.0.

Resources

The log4j-user mailing list is log4j-user@logging.apache.org . You can subscribe from this link, but please be sure to read this first.

Any bugs should be reported via Apache Bugzilla. The list of open bugs is here.

Users are encouraged to first search the Main log4j FAQ, this wiki's FrequentlyAskedQuestions, and the mail archives to see if a question has been previously answered. If not satisfied with the results of this search, then by all means, please post your questions.


'Special' Wiki pages

FrontPage (last edited 2013-11-20 17:22:25 by pctony)