|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.core.log.NullLogger
public class NullLogger
Implementation of Logger
that does nothing. An instance of this class is often useful
when a reference to a Logger
is always expected to be non-null, but no logging is desired.
Constructor Summary | |
---|---|
NullLogger()
|
Method Summary | |
---|---|
void |
log(int severity,
java.lang.String message)
Logs the given message with the supplied severity. |
void |
log(int severity,
java.lang.Throwable t,
java.lang.String message)
Logs the given message and Throwable with the supplied severity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullLogger()
Method Detail |
---|
public void log(int severity, java.lang.String message)
Logger
log
in interface Logger
message
- the message to be loggedLogger.log(int, java.lang.String)
public void log(int severity, java.lang.Throwable t, java.lang.String message)
Logger
Throwable
with the supplied severity.
log
in interface Logger
severity
- the severityt
- the exception; may be nullmessage
- the message to be loggedLogger.log(int, java.lang.Throwable, java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |