public class JDK14LoggerPlugin extends java.lang.Object implements LoggerPlugin, MDCSupport, NDCSupport
| Constructor and Description |
|---|
JDK14LoggerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.Object message)
Issue a log msg with a level of DEBUG.
|
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Issue a log msg and throwable with a level of DEBUG.
|
void |
error(java.lang.Object message)
Issue a log msg with a level of ERROR.
|
void |
error(java.lang.Object message,
java.lang.Throwable t)
Issue a log msg and throwable with a level of ERROR.
|
void |
fatal(java.lang.Object message)
Issue a log msg with a level of FATAL.
|
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Issue a log msg and throwable with a level of FATAL.
|
MDCProvider |
getMDCProvider() |
NDCProvider |
getNDCProvider() |
void |
info(java.lang.Object message)
Issue a log msg with a level of INFO.
|
void |
info(java.lang.Object message,
java.lang.Throwable t)
Issue a log msg and throwable with a level of INFO.
|
void |
init(java.lang.String name)
Initialise the logger with the given name
|
boolean |
isDebugEnabled()
Check to see if the DEBUG level is enabled for this logger.
|
boolean |
isInfoEnabled()
Check to see if the INFO level is enabled for this logger.
|
boolean |
isTraceEnabled()
Check to see if the TRACE level is enabled for this logger.
|
void |
trace(java.lang.Object message)
Issue a log msg with a level of TRACE.
|
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Issue a log msg and throwable with a level of TRACE.
|
void |
warn(java.lang.Object message)
Issue a log msg with a level of WARN.
|
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Issue a log msg and throwable with a level of WARN.
|
public void init(java.lang.String name)
LoggerPlugininit in interface LoggerPluginname - the namepublic boolean isTraceEnabled()
LoggerPluginisTraceEnabled in interface LoggerPluginLoggerPlugin.trace(Object) method invocation would pass
the msg to the configured appenders, false otherwise.public void trace(java.lang.Object message)
LoggerPlugintrace in interface LoggerPluginmessage - the messagepublic void trace(java.lang.Object message,
java.lang.Throwable t)
LoggerPlugintrace in interface LoggerPluginmessage - the messaget - the throwablepublic boolean isDebugEnabled()
LoggerPluginisDebugEnabled in interface LoggerPluginLoggerPlugin.trace(Object) method invocation would pass
the msg to the configured appenders, false otherwise.public void debug(java.lang.Object message)
LoggerPlugindebug in interface LoggerPluginmessage - the messagepublic void debug(java.lang.Object message,
java.lang.Throwable t)
LoggerPlugindebug in interface LoggerPluginmessage - the messaget - the throwablepublic boolean isInfoEnabled()
LoggerPluginisInfoEnabled in interface LoggerPluginLoggerPlugin.info(Object) method invocation would pass
the msg to the configured appenders, false otherwise.public void info(java.lang.Object message)
LoggerPlugininfo in interface LoggerPluginmessage - the messagepublic void info(java.lang.Object message,
java.lang.Throwable t)
LoggerPlugininfo in interface LoggerPluginmessage - the messaget - the throwablepublic void warn(java.lang.Object message)
LoggerPluginwarn in interface LoggerPluginmessage - the messagepublic void warn(java.lang.Object message,
java.lang.Throwable t)
LoggerPluginwarn in interface LoggerPluginmessage - the messaget - the throwablepublic void error(java.lang.Object message)
LoggerPluginerror in interface LoggerPluginmessage - the messagepublic void error(java.lang.Object message,
java.lang.Throwable t)
LoggerPluginerror in interface LoggerPluginmessage - the messaget - the throwablepublic void fatal(java.lang.Object message)
LoggerPluginfatal in interface LoggerPluginmessage - the messagepublic void fatal(java.lang.Object message,
java.lang.Throwable t)
LoggerPluginfatal in interface LoggerPluginmessage - the messaget - the throwablepublic NDCProvider getNDCProvider()
getNDCProvider in interface NDCSupportpublic MDCProvider getMDCProvider()
getMDCProvider in interface MDCSupport