net.sf.wraplog
Class NoneLogger

java.lang.Object
  extended bynet.sf.wraplog.AbstractLogger
      extended bynet.sf.wraplog.NoneLogger

public class NoneLogger
extends AbstractLogger

A Logger that does not log anywhere. This is a useful a an internal default for libraries before the client applications sets a logger.

Author:
Thomas Aglassinger

Constructor Summary
NoneLogger()
           
 
Method Summary
protected  void reallyLog(int logLevel, String message, Throwable error)
          Log a message and optional error details.
 
Methods inherited from class net.sf.wraplog.AbstractLogger
checkLevel, debug, debug, debug, debug, error, error, error, error, getLevel, getLoggedMessageCount, handleError, handleError, info, info, info, info, isDebugEnabled, isEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, log, log, setLevel, setLoggingErrorHandler, warn, warn, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoneLogger

public NoneLogger()
Method Detail

reallyLog

protected void reallyLog(int logLevel,
                         String message,
                         Throwable error)
Description copied from class: AbstractLogger
Log a message and optional error details.

Specified by:
reallyLog in class AbstractLogger
Parameters:
logLevel - one of: Level.DEBUG, Level.INFO, Level.WARN, Level.ERROR
message - the actual message; this will never be null
error - an error that is related to the message; unless null, the name and stack trace of the error are logged