| This class is used to configure the logging mechanism and to obtain our own
Hierarchy from Log4J, the real work is done by the Log4j
package.
The LoggingService defines a Log4j Hierarchy where all used
Logger instances reside in so we don't interact with other
classes using Log4j in the same VM. For that reason all categories must be
created using the static
LoggingService.getLogger method of this class, for
example:
org.apache.log4j.Logger myLog = LoggingService.getLogger(MyClass.class); ...
myLog.info("hello world!");
Look at the Log4j-Homepage
for further information about Log4j.
To configure Log4j an XML file is used. The name of this file must be passed
when
LoggingService.init initializing this class.
|