previous next TOC

Basic features of any logging library are:

  1. control over which logging statements are enabled or disabled,
  2. manage output destinations,
  3. manage output format.

The first feature corresponds to the Logger, the central class in the log4j package.

The second feature is implemented by Appenders. There are appenders for files, the console, Unix Syslog, NT Event Log, remote servers, SMTP e-mail, etc.

The third feature is implemented by Layouts. The most popular layouts are the PatternLayout and HTMLLayout.

 

GET THE DOCS DIRECTLY FROM THE DEVELOPER
For up to date and detailed log4j documentation directly from the developer please consider The complete log4j manual.