previous next TOC  
Configuration
 
  • Log4j allows both programmatical and script-based configuration.

  • Configuration scripts can be expressed as key=value pairs or in XML format.


Given their large numbers, logging statements need to be managed in a convenient manner.

The basic log4j paradigm is as follows. Add a logger as a class static variable to each class, log away using that logger variable and let configuration files take care of the rest.

 

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.