org.logicalcobwebs.logging.impl
Class NoOpLog

java.lang.Object
  extended by org.logicalcobwebs.logging.impl.NoOpLog
All Implemented Interfaces:
Log

public final class NoOpLog
extends java.lang.Object
implements Log

Default implementation of Log that throws away all messages. No configurable system properties are supported.

Version:
$Id: NoOpLog.java,v 1.2 2003/02/08 14:27:51 chr32 Exp $
Author:
Scott Sanders, Rod Waldhoff

Constructor Summary
NoOpLog()
          Convenience constructor
NoOpLog(java.lang.String name)
          Base constructor
 
Method Summary
 void debug(java.lang.Object message)
          Do nothing
 void debug(java.lang.Object message, java.lang.Throwable t)
          Do nothing
 void error(java.lang.Object message)
          Do nothing
 void error(java.lang.Object message, java.lang.Throwable t)
          Do nothing
 void fatal(java.lang.Object message)
          Do nothing
 void fatal(java.lang.Object message, java.lang.Throwable t)
          Do nothing
 void info(java.lang.Object message)
          Do nothing
 void info(java.lang.Object message, java.lang.Throwable t)
          Do nothing
 boolean isDebugEnabled()
          Debug is never enabled.
 boolean isErrorEnabled()
          Error is never enabled.
 boolean isFatalEnabled()
          Fatal is never enabled.
 boolean isInfoEnabled()
          Info is never enabled.
 boolean isTraceEnabled()
          Trace is never enabled.
 boolean isWarnEnabled()
          Warning is never enabled.
 void trace(java.lang.Object message)
          Do nothing
 void trace(java.lang.Object message, java.lang.Throwable t)
          Do nothing
 void warn(java.lang.Object message)
          Do nothing
 void warn(java.lang.Object message, java.lang.Throwable t)
          Do nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpLog

public NoOpLog()
Convenience constructor


NoOpLog

public NoOpLog(java.lang.String name)
Base constructor

Method Detail

trace

public void trace(java.lang.Object message)
Do nothing

Specified by:
trace in interface Log
Parameters:
message - log this message

trace

public void trace(java.lang.Object message,
                  java.lang.Throwable t)
Do nothing

Specified by:
trace in interface Log
Parameters:
message - log this message
t - log this cause

debug

public void debug(java.lang.Object message)
Do nothing

Specified by:
debug in interface Log
Parameters:
message - log this message

debug

public void debug(java.lang.Object message,
                  java.lang.Throwable t)
Do nothing

Specified by:
debug in interface Log
Parameters:
message - log this message
t - log this cause

info

public void info(java.lang.Object message)
Do nothing

Specified by:
info in interface Log
Parameters:
message - log this message

info

public void info(java.lang.Object message,
                 java.lang.Throwable t)
Do nothing

Specified by:
info in interface Log
Parameters:
message - log this message
t - log this cause

warn

public void warn(java.lang.Object message)
Do nothing

Specified by:
warn in interface Log
Parameters:
message - log this message

warn

public void warn(java.lang.Object message,
                 java.lang.Throwable t)
Do nothing

Specified by:
warn in interface Log
Parameters:
message - log this message
t - log this cause

error

public void error(java.lang.Object message)
Do nothing

Specified by:
error in interface Log
Parameters:
message - log this message

error

public void error(java.lang.Object message,
                  java.lang.Throwable t)
Do nothing

Specified by:
error in interface Log
Parameters:
message - log this message
t - log this cause

fatal

public void fatal(java.lang.Object message)
Do nothing

Specified by:
fatal in interface Log
Parameters:
message - log this message

fatal

public void fatal(java.lang.Object message,
                  java.lang.Throwable t)
Do nothing

Specified by:
fatal in interface Log
Parameters:
message - log this message
t - log this cause

isDebugEnabled

public final boolean isDebugEnabled()
Debug is never enabled.

Specified by:
isDebugEnabled in interface Log
Returns:
false

isErrorEnabled

public final boolean isErrorEnabled()
Error is never enabled.

Specified by:
isErrorEnabled in interface Log
Returns:
false

isFatalEnabled

public final boolean isFatalEnabled()
Fatal is never enabled.

Specified by:
isFatalEnabled in interface Log
Returns:
false

isInfoEnabled

public final boolean isInfoEnabled()
Info is never enabled.

Specified by:
isInfoEnabled in interface Log
Returns:
false

isTraceEnabled

public final boolean isTraceEnabled()
Trace is never enabled.

Specified by:
isTraceEnabled in interface Log
Returns:
false

isWarnEnabled

public final boolean isWarnEnabled()
Warning is never enabled.

Specified by:
isWarnEnabled in interface Log
Returns:
false