Modifier and Type | Method and Description |
---|---|
void |
debug(Object message)
Log a message with debug log level.
|
void |
debug(Object message,
Throwable t)
Log an error with debug log level.
|
void |
error(Object message)
Log a message with error log level.
|
void |
error(Object message,
Throwable t)
Log an error with error log level.
|
void |
fatal(Object message)
Log a message with fatal log level.
|
void |
fatal(Object message,
Throwable t)
Log an error with fatal log level.
|
int |
getLogLevel()
Returns the LogLevel of the Logger.
|
void |
info(Object message)
Log a message with info log level.
|
void |
info(Object message,
Throwable t)
Log an error with info log level.
|
boolean |
isDebugEnabled()
Is debug logging currently enabled?
|
boolean |
isErrorEnabled()
Is error logging currently enabled?
|
boolean |
isFatalEnabled()
Is fatal logging currently enabled?
|
boolean |
isInfoEnabled()
Is info logging currently enabled?
|
boolean |
isTraceEnabled()
Is trace logging currently enabled?
|
boolean |
isWarnEnabled()
Is warn logging currently enabled?
|
void |
setBundleContext(org.osgi.framework.BundleContext context) |
void |
setPaxLoggingManager(PaxLoggingManager paxLoggingManager,
String name)
Not a public method.
|
void |
trace(Object message)
Log a message with trace log level.
|
void |
trace(Object message,
Throwable t)
Log an error with trace log level.
|
void |
warn(Object message)
Log a message with warn log level.
|
void |
warn(Object message,
Throwable t)
Log an error with warn log level.
|
public static final String JCL_FQCN
public JclLogger(PaxLogger delegate)
public boolean isDebugEnabled()
Log
Is debug logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatenation)
when the log level is more than debug.
isDebugEnabled
in interface Log
public boolean isErrorEnabled()
Log
Is error logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatenation)
when the log level is more than error.
isErrorEnabled
in interface Log
public boolean isFatalEnabled()
Log
Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatenation)
when the log level is more than fatal.
isFatalEnabled
in interface Log
public boolean isInfoEnabled()
Log
Is info logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatenation)
when the log level is more than info.
isInfoEnabled
in interface Log
public boolean isTraceEnabled()
Log
Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatenation)
when the log level is more than trace.
isTraceEnabled
in interface Log
public boolean isWarnEnabled()
Log
Is warn logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatenation)
when the log level is more than warn.
isWarnEnabled
in interface Log
public void trace(Object message)
Log
Log a message with trace log level.
public void trace(Object message, Throwable t)
Log
Log an error with trace log level.
public void debug(Object message)
Log
Log a message with debug log level.
public void debug(Object message, Throwable t)
Log
Log an error with debug log level.
public void info(Object message)
Log
Log a message with info log level.
public void info(Object message, Throwable t)
Log
Log an error with info log level.
public void warn(Object message)
Log
Log a message with warn log level.
public void warn(Object message, Throwable t)
Log
Log an error with warn log level.
public void error(Object message)
Log
Log a message with error log level.
public void error(Object message, Throwable t)
Log
Log an error with error log level.
public void fatal(Object message)
Log
Log a message with fatal log level.
public void fatal(Object message, Throwable t)
Log
Log an error with fatal log level.
public int getLogLevel()
Log
Integer.MAX_INT = OFF FATAL = 50000 ERROR = 40000 WARN = 30000 INFO = 20000 DEBUG = 10000 TRACE = 5000 ALL = Integer.MIN_VALUE
getLogLevel
in interface Log
public void setBundleContext(org.osgi.framework.BundleContext context)
public void setPaxLoggingManager(PaxLoggingManager paxLoggingManager, String name)
paxLoggingManager
- TODOname
- TODOCopyright © 2012. All Rights Reserved.