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)
LoggerPlugin
init
in interface LoggerPlugin
name
- the namepublic boolean isTraceEnabled()
LoggerPlugin
isTraceEnabled
in interface LoggerPlugin
LoggerPlugin.trace(Object)
method invocation would pass
the msg to the configured appenders, false otherwise.public void trace(java.lang.Object message)
LoggerPlugin
trace
in interface LoggerPlugin
message
- the messagepublic void trace(java.lang.Object message, java.lang.Throwable t)
LoggerPlugin
trace
in interface LoggerPlugin
message
- the messaget
- the throwablepublic boolean isDebugEnabled()
LoggerPlugin
isDebugEnabled
in interface LoggerPlugin
LoggerPlugin.trace(Object)
method invocation would pass
the msg to the configured appenders, false otherwise.public void debug(java.lang.Object message)
LoggerPlugin
debug
in interface LoggerPlugin
message
- the messagepublic void debug(java.lang.Object message, java.lang.Throwable t)
LoggerPlugin
debug
in interface LoggerPlugin
message
- the messaget
- the throwablepublic boolean isInfoEnabled()
LoggerPlugin
isInfoEnabled
in interface LoggerPlugin
LoggerPlugin.info(Object)
method invocation would pass
the msg to the configured appenders, false otherwise.public void info(java.lang.Object message)
LoggerPlugin
info
in interface LoggerPlugin
message
- the messagepublic void info(java.lang.Object message, java.lang.Throwable t)
LoggerPlugin
info
in interface LoggerPlugin
message
- the messaget
- the throwablepublic void warn(java.lang.Object message)
LoggerPlugin
warn
in interface LoggerPlugin
message
- the messagepublic void warn(java.lang.Object message, java.lang.Throwable t)
LoggerPlugin
warn
in interface LoggerPlugin
message
- the messaget
- the throwablepublic void error(java.lang.Object message)
LoggerPlugin
error
in interface LoggerPlugin
message
- the messagepublic void error(java.lang.Object message, java.lang.Throwable t)
LoggerPlugin
error
in interface LoggerPlugin
message
- the messaget
- the throwablepublic void fatal(java.lang.Object message)
LoggerPlugin
fatal
in interface LoggerPlugin
message
- the messagepublic void fatal(java.lang.Object message, java.lang.Throwable t)
LoggerPlugin
fatal
in interface LoggerPlugin
message
- the messaget
- the throwablepublic NDCProvider getNDCProvider()
getNDCProvider
in interface NDCSupport
public MDCProvider getMDCProvider()
getMDCProvider
in interface MDCSupport