Utility class that provides a set of static convenience methods related to
the initialization and configuration of the logging mechanism(s) employed by
the components of the system. The methods of this class can be useful both in
Jini configuration files, as well as in the system components themselves.
This class relies on the presence of either the
log4j.configuration
or the
log4j.primary.configuration
property.
If neither of those properties is found, then this class searches the
CLASSPATH for a log4j configuration. While this is a change from the
historical, searching the CLASSPATH is necessary for webapp deployments.
This class understands files with any of the following extensions {
.properties
, .logging
, .xml
. If
neither configuration property is defined, if the resource identified by the
property can not be located, or if a log4j configuration resource can not be
located in the default location along the class path then this class will
will a message on stderr.
A watcher is setup on the log4j configuration if one is found.
This class cannot be instantiated.