Log4j is a logging package written in Java. Log4j allows you to log to a file, a java.io.Writer, a remote server, or a syslog daemon. The package is designed so that log statements can remain in shipped code without incurring a high performance cost. One distinctive feature of log4j is the notion of hierarchical loggers. Using hierarchical loggers, it is possible to select (at runtime) which log statements are output at arbitrary granularity. Users can choose to implement their own log formats and output strategies.
| Tags | Software Development Libraries Logging Java Libraries |
|---|---|
| Licenses | Apache |
| Operating Systems | OS Independent |
| Implementation | Java |
Recent releases


Changes: This version is identical to version 1.2.8, except that several key methods have been deprecated in preparation for version 1.3.0, the next major release of log4j. These changes are intended to enforce the rule that client code should never refer to the Category class directly, but use the Logger class instead. Similarly, client code should not refer to the Priority class but to the Level class instead.


Changes: This is a purely maintenance release which fixes a parsing problem of log4j configuration files written in XML observed with certain versions of Xerces.


Changes: This release searches for the file log4j.xml as well as the file log4j.properties during initialization.


Changes: This is a minor maintenance release. The most significant change is the addition of the "log4j.ignoreTCL" system property.


No changes have been submitted for this release.
- All comments
Recent commentssyslog compatibility
Syslog compatibility has been tested only with the 1.3 version of syslogd on Linux. Other daemons might behave differently.
UDP is unreliable. Log packets can and often do get lost. Enjoy, Ceki
Stability of v0.6.1
Altough log4j is marked a "development" release, it is failrly stable and is being currently used in a number of projects.