com.metamatrix.core.log
Class NullLogger

java.lang.Object
  extended by com.metamatrix.core.log.NullLogger
All Implemented Interfaces:
Logger

public class NullLogger
extends java.lang.Object
implements Logger

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

NullLogger

public NullLogger()
Method Detail

log

public void log(int severity,
                java.lang.String message)
Description copied from interface: Logger
Logs the given message with the supplied severity.

Specified by:
log in interface Logger
message - the message to be logged
See Also:
Logger.log(int, java.lang.String)

log

public void log(int severity,
                java.lang.Throwable t,
                java.lang.String message)
Description copied from interface: Logger
Logs the given message and Throwable with the supplied severity.

Specified by:
log in interface Logger
Parameters:
severity - the severity
t - the exception; may be null
message - the message to be logged
See Also:
Logger.log(int, java.lang.Throwable, java.lang.String)


Copyright © 2009. All Rights Reserved.