org.apache.avalon.framework.logger
Class NullLogger

java.lang.Object
  extended byorg.apache.avalon.framework.logger.NullLogger
All Implemented Interfaces:
Logger

public final class NullLogger
extends java.lang.Object
implements Logger

The Null Logger class. This is useful for implementations where you need to provide a logger to a utility class, but do not want any output from it. It also helps when you have a utility that does not have a logger to supply.

Version:
$Id: NullLogger.java 30977 2004-07-30 08:57:54Z niclas $
Author:
Avalon Development Team

Constructor Summary
NullLogger()
          Creates a new NullLogger.
 
Method Summary
 void debug(java.lang.String message)
          No-op.
 void debug(java.lang.String message, java.lang.Throwable throwable)
          No-op.
 void error(java.lang.String message)
          No-op.
 void error(java.lang.String message, java.lang.Throwable throwable)
          No-op.
 void fatalError(java.lang.String message)
          No-op.
 void fatalError(java.lang.String message, java.lang.Throwable throwable)
          No-op.
 Logger getChildLogger(java.lang.String name)
          Returns this NullLogger.
 void info(java.lang.String message)
          No-op.
 void info(java.lang.String message, java.lang.Throwable throwable)
          No-op.
 boolean isDebugEnabled()
          No-op.
 boolean isErrorEnabled()
          No-op.
 boolean isFatalErrorEnabled()
          No-op.
 boolean isInfoEnabled()
          No-op.
 boolean isWarnEnabled()
          No-op.
 void warn(java.lang.String message)
          No-op.
 void warn(java.lang.String message, java.lang.Throwable throwable)
          No-op.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLogger

public NullLogger()
Creates a new NullLogger.

Method Detail

debug

public void debug(java.lang.String message)
No-op.

Specified by:
debug in interface Logger
Parameters:
message - ignored

debug

public void debug(java.lang.String message,
                  java.lang.Throwable throwable)
No-op.

Specified by:
debug in interface Logger
Parameters:
message - ignored
throwable - ignored

isDebugEnabled

public boolean isDebugEnabled()
No-op.

Specified by:
isDebugEnabled in interface Logger
Returns:
false

info

public void info(java.lang.String message)
No-op.

Specified by:
info in interface Logger
Parameters:
message - ignored

info

public void info(java.lang.String message,
                 java.lang.Throwable throwable)
No-op.

Specified by:
info in interface Logger
Parameters:
message - ignored
throwable - ignored

isInfoEnabled

public boolean isInfoEnabled()
No-op.

Specified by:
isInfoEnabled in interface Logger
Returns:
false

warn

public void warn(java.lang.String message)
No-op.

Specified by:
warn in interface Logger
Parameters:
message - ignored

warn

public void warn(java.lang.String message,
                 java.lang.Throwable throwable)
No-op.

Specified by:
warn in interface Logger
Parameters:
message - ignored
throwable - ignored

isWarnEnabled

public boolean isWarnEnabled()
No-op.

Specified by:
isWarnEnabled in interface Logger
Returns:
false

error

public void error(java.lang.String message)
No-op.

Specified by:
error in interface Logger
Parameters:
message - ignored

error

public void error(java.lang.String message,
                  java.lang.Throwable throwable)
No-op.

Specified by:
error in interface Logger
Parameters:
message - ignored
throwable - ignored

isErrorEnabled

public boolean isErrorEnabled()
No-op.

Specified by:
isErrorEnabled in interface Logger
Returns:
false

fatalError

public void fatalError(java.lang.String message)
No-op.

Specified by:
fatalError in interface Logger
Parameters:
message - ignored

fatalError

public void fatalError(java.lang.String message,
                       java.lang.Throwable throwable)
No-op.

Specified by:
fatalError in interface Logger
Parameters:
message - ignored
throwable - ignored

isFatalErrorEnabled

public boolean isFatalErrorEnabled()
No-op.

Specified by:
isFatalErrorEnabled in interface Logger
Returns:
false

getChildLogger

public Logger getChildLogger(java.lang.String name)
Returns this NullLogger.

Specified by:
getChildLogger in interface Logger
Parameters:
name - ignored
Returns:
this NullLogger


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.