You are not the only one frustrated by the state of log4j
documentation.

If you persevere, the Introduction section "Configuration" does sort
of explain things, although as noted it does so mainly from the
programmer's point of view.  The section "Default Initialization"
discusses how the configuration is found.

Digging in a little, there is somewhat more complete configuration
documentation in the Javadoc:

  http://logging.apache.org/log4j/1.2/apidocs/index.html

Scroll down (and down and down) through
org.apache.log4j.PropertyConfigurator to the method
doConfigure(String,LoggerRepository) and you will find a bit of
discussion of configuration syntax and semantics.  Apparently, if you
fetch the source kit and unpack it, there are further examples included.

"Read The Fine Manuals" is certainly good advice, but log4j is a poor
example.  It's a shame that the package is in such a poor state,
because it has a number of clever and useful features which are rarely
mentioned.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.

Attachment: pgp1UL7EgEQWH.pgp
Description: PGP signature

Reply via email to