This class provides an alternate access to the log4j logging
library. The necessity arises from the usage of log4j as logging
package in the JBoss application server. As log4j is already
included in JBoss' classpath and configured by JBoss, we cannot
have really independent application level logging.
The central problem is the static default hierarchy used by
org.apache.log4j.Logger . For a distinct application
level logging we need an alternate hierarchy. Of course, we want to
access this hierarchy as simple as
Logger.getInstance(...) and thus we need a new class
that provides the static acces to the alternate (application
level) hierarchy.
Note that no static methods of other log4j classes may be used in
the context of this application level logging, as they usually rely
on Logger.getDefaultHierarchy() and that is not the
application level hierarchy.
|