org.apache.commons.inject.api
Class CommonsLoggingLoggerModule
java.lang.Object
org.apache.commons.inject.api.AbstractLoggerInjectingModule<org.apache.commons.logging.Log>
org.apache.commons.inject.api.CommonsLoggingLoggerModule
- All Implemented Interfaces:
- IModule
public class CommonsLoggingLoggerModule
- extends AbstractLoggerInjectingModule<org.apache.commons.logging.Log>
A module
, which injects Commons Logging Loggers, aka instances of
Log
.
If you are using the module, it should precede all others in your module list,
when invoking CommonsInject.build(org.apache.commons.inject.api.bind.IModule...)
,
or CommonsInject.build(java.util.Collection)
. However, the
PostConstructModule
takes precedence, if you are using that as well.
- See Also:
Log4jLoggerModule
,
Slf4JLoggerModule
,
Log4j2LoggerModule
,
AbstractLoggerInjectingModule
Method Summary |
protected org.apache.commons.logging.Log |
newLogger(String pId)
Creates an instance of Log . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonsLoggingLoggerModule
public CommonsLoggingLoggerModule()
newLogger
protected org.apache.commons.logging.Log newLogger(String pId)
- Creates an instance of
Log
.
- Specified by:
newLogger
in class AbstractLoggerInjectingModule<org.apache.commons.logging.Log>
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.