Log4j |
|
Log4j is a package to output log statements to a variety of output targets.
The log statements can remain in your shipped code without incurring a heavy performance cost. The logging behavior can be controlled by editing a configuration file (log4j.properties), without modifying the application. One of the distinctive features of log4j is the notion of inheritance in loggers. By using a logger hierarchy it is possible to control which log statements are output at arbitrarily fine granularity. This helps reduce the volume of logged output and minimize the cost of logging. The target of the log output can be a file, an OutputStream, a java.io.Writer, a remote log4j server, a remote Unix Syslog daemon, or even a NT Event logger among many other output targets. Log4j has three main components (loggers, appenders and layouts) which works together to enable developers to log messages according to message type and level, and to control at runtime how these messages are formatted and where they are reported. Log4j is distributed at no charge for commercial or non-commercial use. For more information read the LICENSE.txt file. More information about log4j can be found at http://logging.apache.org/log4j/docs/index.html The latest Log4j version can be downloaded from http://logging.apache.org/log4j/docs/download.html Quick guides
|