public class JclLogger extends Object implements org.apache.commons.logging.Log, PaxLoggingManagerAwareLogger
pax-logging specific Log that delegates to PaxLogger that is obtained from
framework specific PaxLoggingService and eventually delegates to logging
implementation.
| Constructor and Description |
|---|
JclLogger(String name,
PaxLogger delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object message) |
void |
debug(Object message,
Throwable t) |
void |
error(Object message) |
void |
error(Object message,
Throwable t) |
void |
fatal(Object message) |
void |
fatal(Object message,
Throwable t) |
void |
info(Object message) |
void |
info(Object message,
Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
void |
setPaxLoggingManager(PaxLoggingManager paxLoggingManager)
Configures a
PaxLoggingManager that from now on can be used to
obtain a non-fallback logger that given logger
is delegating to. |
void |
trace(Object message) |
void |
trace(Object message,
Throwable t) |
void |
warn(Object message) |
void |
warn(Object message,
Throwable t) |
public static final String JCL_FQCN
public void setPaxLoggingManager(PaxLoggingManager paxLoggingManager)
PaxLoggingManagerAwareLoggerConfigures a PaxLoggingManager that from now on can be used to
obtain a non-fallback logger that 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 real PaxLoggingService. 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.
setPaxLoggingManager in interface PaxLoggingManagerAwareLoggerpublic boolean isDebugEnabled()
isDebugEnabled in interface org.apache.commons.logging.Logpublic boolean isErrorEnabled()
isErrorEnabled in interface org.apache.commons.logging.Logpublic boolean isFatalEnabled()
isFatalEnabled in interface org.apache.commons.logging.Logpublic boolean isInfoEnabled()
isInfoEnabled in interface org.apache.commons.logging.Logpublic boolean isTraceEnabled()
isTraceEnabled in interface org.apache.commons.logging.Logpublic boolean isWarnEnabled()
isWarnEnabled in interface org.apache.commons.logging.Logpublic void trace(Object message)
trace in interface org.apache.commons.logging.Logpublic void trace(Object message, Throwable t)
trace in interface org.apache.commons.logging.Logpublic void debug(Object message)
debug in interface org.apache.commons.logging.Logpublic void debug(Object message, Throwable t)
debug in interface org.apache.commons.logging.Logpublic void info(Object message)
info in interface org.apache.commons.logging.Logpublic void info(Object message, Throwable t)
info in interface org.apache.commons.logging.Logpublic void warn(Object message)
warn in interface org.apache.commons.logging.Logpublic void warn(Object message, Throwable t)
warn in interface org.apache.commons.logging.Logpublic void error(Object message)
error in interface org.apache.commons.logging.Logpublic void error(Object message, Throwable t)
error in interface org.apache.commons.logging.Logpublic void fatal(Object message)
fatal in interface org.apache.commons.logging.LogCopyright © 2006–2020 OPS4J - Open Participation Software for Java. All rights reserved.