Apache Log4j 2.0

A Java logging utility built for storing application behavior, a part of the Apache Logging Services
log4j permits to enable logging at runtime without modifying the application's 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.

Logging equips the developer with detailed context for application failures. On the other hand, testing provides quality assurance and confidence in the application. Logging and testing should not be confused.

They are complementary. When logging is wisely used, it can prove to be an essential tool.

One of the distinctive features of log4j is the notion of inheritance in loggers. Using a logger hierarchy it is possible to control which log statements are output at arbitrarily fine granularity but also great ease.

This helps to reduce the volume of logged output and the cost of logging.

last updated on:
July 18th, 2014, 13:34 GMT
developed by:
Apache Software Foundation
license type:
Apache License
operating system(s):
Windows / Linux / Mac OS / BSD / Solaris
C: \ Development Tools \ Complete applications


In a hurry? Add it to your Download Basket!

user rating 1



What's New in This Release:
  • Fixed issue where Async Logger does not log thread context stack data. API Added method getImmutableStackOrNull() to ThreadContext.ContextStack interface.
  • Update docs to clarify how to use formatter logger and standard logger together.
  • Added support for generating custom logger wrappers that replace the existing log levels and extended logger wrappers that add custom log levels to the existing ones.
  • LoggerConfigs with no Level now inherit the Level from their parent.
read full changelog

Add your review!