public class NoLogger extends Object implements LogAdapter
NoLogger implements a LogAdapter that does
not perform any logging.| Modifier and Type | Method and Description |
|---|---|
void |
debug(Serializable message)
Logs a debug message.
|
void |
error(CharSequence message,
Throwable t)
Logs an error message.
|
void |
error(Serializable message)
Logs an error message.
|
void |
fatal(CharSequence message,
Throwable throwable)
Logs a fatal message.
|
void |
fatal(Object message)
Logs a fatal message.
|
LogLevel |
getEffectiveLogLevel()
Returns the log level that is effective for this log adapter.
|
Iterator |
getLogHandler()
Returns the log handlers associated with this logger.
|
LogLevel |
getLogLevel()
Returns the log level defined for this log adapter.
|
String |
getName()
Returns the name of the logger.
|
void |
info(CharSequence message)
Logs an informational message.
|
boolean |
isDebugEnabled()
Checks whether DEBUG level logging is activated for this log adapter.
|
boolean |
isInfoEnabled()
Checks whether INFO level logging is activated for this log adapter.
|
boolean |
isWarnEnabled()
Checks whether WARN level logging is activated for this log adapter.
|
void |
setLogLevel(LogLevel level)
Sets the log level for this log adapter (if applicable).
|
void |
warn(Serializable message)
Logs an warning message.
|
public void debug(Serializable message)
LogAdapterdebug in interface LogAdaptermessage - the message to log.public void error(Serializable message)
LogAdaptererror in interface LogAdaptermessage - the message to log.public void error(CharSequence message, Throwable t)
LogAdaptererror in interface LogAdaptermessage - the message to log.t - the exception that caused to error.public void info(CharSequence message)
LogAdapterinfo in interface LogAdaptermessage - the message to log.public boolean isDebugEnabled()
LogAdapterisDebugEnabled in interface LogAdaptertrue if logging is enabled or false otherwise.public boolean isInfoEnabled()
LogAdapterisInfoEnabled in interface LogAdaptertrue if logging is enabled or false otherwise.public boolean isWarnEnabled()
LogAdapterisWarnEnabled in interface LogAdaptertrue if logging is enabled or false otherwise.public void warn(Serializable message)
LogAdapterwarn in interface LogAdaptermessage - the message to log.public void fatal(Object message)
LogAdapterfatal in interface LogAdaptermessage - the message to log.public void fatal(CharSequence message, Throwable throwable)
LogAdapterfatal in interface LogAdaptermessage - the message to log.throwable - the exception that caused to error.public void setLogLevel(LogLevel level)
LogAdaptersetLogLevel in interface LogAdapterlevel - a LogLevel instance.public String getName()
LogAdaptergetName in interface LogAdapterpublic LogLevel getLogLevel()
LogAdaptergetLogLevel in interface LogAdapterpublic LogLevel getEffectiveLogLevel()
LogAdapterLogLevel.NONE to the root.getEffectiveLogLevel in interface LogAdapterLogLevel.NONE.public Iterator getLogHandler()
LogAdaptergetLogHandler in interface LogAdapterCopyright © 2016 SNMP4J.org. All Rights Reserved.