Package org.ops4j.pax.logging.avalon
Class AvalonLogger
- java.lang.Object
-
- org.ops4j.pax.logging.avalon.AvalonLogger
-
- All Implemented Interfaces:
org.apache.avalon.framework.logger.Logger,PaxLoggingManagerAwareLogger
public class AvalonLogger extends Object implements org.apache.avalon.framework.logger.Logger, PaxLoggingManagerAwareLogger
pax-logging specificLoggerthat delegates toPaxLoggerthat is obtained from framework specificPaxLoggingServiceand eventually delegates to logging implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAVALON_FQCN
-
Constructor Summary
Constructors Constructor Description AvalonLogger(String name, PaxLogger delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String string)voiddebug(String string, Throwable throwable)voiderror(String string)voiderror(String string, Throwable throwable)voidfatalError(String string)voidfatalError(String string, Throwable throwable)org.apache.avalon.framework.logger.LoggergetChildLogger(String name)StringgetName()voidinfo(String string)voidinfo(String string, Throwable throwable)booleanisDebugEnabled()booleanisErrorEnabled()booleanisFatalErrorEnabled()booleanisInfoEnabled()booleanisWarnEnabled()voidsetPaxLoggingManager(PaxLoggingManager paxLoggingManager)Configures aPaxLoggingManagerthat from now on can be used toobtain a non-fallback loggerthat given logger is delegating to.voidwarn(String string)voidwarn(String string, Throwable throwable)
-
-
-
Field Detail
-
AVALON_FQCN
public static final String AVALON_FQCN
-
-
Method Detail
-
setPaxLoggingManager
public void setPaxLoggingManager(PaxLoggingManager paxLoggingManager)
Description copied from interface:PaxLoggingManagerAwareLoggerConfigures aPaxLoggingManagerthat from now on can be used toobtain a non-fallback loggerthat given logger is delegating to. This method is called in activator of pax-logging-api to ensure that loggers that may already been created from pax-logging adjusted facades/factories actually delegate to realPaxLoggingService. This is especially visible in pax-exam tests, where pax-logging-api's SLF4J classes are already used by pax-exam itself before even starting OSGi framework.- Specified by:
setPaxLoggingManagerin interfacePaxLoggingManagerAwareLogger
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabledin interfaceorg.apache.avalon.framework.logger.Logger
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabledin interfaceorg.apache.avalon.framework.logger.Logger
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()
- Specified by:
isFatalErrorEnabledin interfaceorg.apache.avalon.framework.logger.Logger
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabledin interfaceorg.apache.avalon.framework.logger.Logger
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabledin interfaceorg.apache.avalon.framework.logger.Logger
-
debug
public void debug(String string)
- Specified by:
debugin interfaceorg.apache.avalon.framework.logger.Logger
-
debug
public void debug(String string, Throwable throwable)
- Specified by:
debugin interfaceorg.apache.avalon.framework.logger.Logger
-
info
public void info(String string)
- Specified by:
infoin interfaceorg.apache.avalon.framework.logger.Logger
-
info
public void info(String string, Throwable throwable)
- Specified by:
infoin interfaceorg.apache.avalon.framework.logger.Logger
-
warn
public void warn(String string)
- Specified by:
warnin interfaceorg.apache.avalon.framework.logger.Logger
-
warn
public void warn(String string, Throwable throwable)
- Specified by:
warnin interfaceorg.apache.avalon.framework.logger.Logger
-
error
public void error(String string)
- Specified by:
errorin interfaceorg.apache.avalon.framework.logger.Logger
-
error
public void error(String string, Throwable throwable)
- Specified by:
errorin interfaceorg.apache.avalon.framework.logger.Logger
-
fatalError
public void fatalError(String string)
- Specified by:
fatalErrorin interfaceorg.apache.avalon.framework.logger.Logger
-
fatalError
public void fatalError(String string, Throwable throwable)
- Specified by:
fatalErrorin interfaceorg.apache.avalon.framework.logger.Logger
-
getChildLogger
public org.apache.avalon.framework.logger.Logger getChildLogger(String name)
- Specified by:
getChildLoggerin interfaceorg.apache.avalon.framework.logger.Logger
-
getName
public String getName()
-
-