Package org.ops4j.pax.logging.juli
Class JuliLogger
- java.lang.Object
-
- org.ops4j.pax.logging.juli.JuliLogger
-
- All Implemented Interfaces:
org.apache.juli.logging.Log,PaxLoggingManagerAwareLogger
public class JuliLogger extends Object implements org.apache.juli.logging.Log, PaxLoggingManagerAwareLogger
pax-logging specificLogthat delegates toPaxLoggerthat is obtained from framework specificPaxLoggingServiceand eventually delegates to logging implementation.
-
-
Constructor Summary
Constructors Constructor Description JuliLogger(String name, PaxLogger delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(Object message)voiddebug(Object message, Throwable t)voiderror(Object message)voiderror(Object message, Throwable t)voidfatal(Object message)voidfatal(Object message, Throwable t)voidinfo(Object message)voidinfo(Object message, Throwable t)booleanisDebugEnabled()booleanisErrorEnabled()booleanisFatalEnabled()booleanisInfoEnabled()booleanisTraceEnabled()booleanisWarnEnabled()voidsetPaxLoggingManager(PaxLoggingManager paxLoggingManager)Configures aPaxLoggingManagerthat from now on can be used toobtain a non-fallback loggerthat given logger is delegating to.voidtrace(Object message)voidtrace(Object message, Throwable t)voidwarn(Object message)voidwarn(Object message, Throwable t)
-
-
-
Field Detail
-
JULI_FQCN
public static final String JULI_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.juli.logging.Log
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabledin interfaceorg.apache.juli.logging.Log
-
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabledin interfaceorg.apache.juli.logging.Log
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabledin interfaceorg.apache.juli.logging.Log
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabledin interfaceorg.apache.juli.logging.Log
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabledin interfaceorg.apache.juli.logging.Log
-
trace
public void trace(Object message)
- Specified by:
tracein interfaceorg.apache.juli.logging.Log
-
trace
public void trace(Object message, Throwable t)
- Specified by:
tracein interfaceorg.apache.juli.logging.Log
-
debug
public void debug(Object message)
- Specified by:
debugin interfaceorg.apache.juli.logging.Log
-
debug
public void debug(Object message, Throwable t)
- Specified by:
debugin interfaceorg.apache.juli.logging.Log
-
info
public void info(Object message)
- Specified by:
infoin interfaceorg.apache.juli.logging.Log
-
info
public void info(Object message, Throwable t)
- Specified by:
infoin interfaceorg.apache.juli.logging.Log
-
warn
public void warn(Object message)
- Specified by:
warnin interfaceorg.apache.juli.logging.Log
-
warn
public void warn(Object message, Throwable t)
- Specified by:
warnin interfaceorg.apache.juli.logging.Log
-
error
public void error(Object message)
- Specified by:
errorin interfaceorg.apache.juli.logging.Log
-
error
public void error(Object message, Throwable t)
- Specified by:
errorin interfaceorg.apache.juli.logging.Log
-
fatal
public void fatal(Object message)
- Specified by:
fatalin interfaceorg.apache.juli.logging.Log
-
-