Class NullLogger

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

public final class NullLogger extends Object implements org.apache.avalon.framework.logger.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 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
Author:
Avalon Development Team
  • Constructor Details

    • NullLogger

      public NullLogger()
      Creates a new NullLogger.
  • Method Details

    • debug

      public void debug(String message)
      No-op.
      Specified by:
      debug in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
    • debug

      public void debug(String message, Throwable throwable)
      No-op.
      Specified by:
      debug in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
      throwable - ignored
    • isDebugEnabled

      public boolean isDebugEnabled()
      No-op.
      Specified by:
      isDebugEnabled in interface org.apache.avalon.framework.logger.Logger
      Returns:
      false
    • info

      public void info(String message)
      No-op.
      Specified by:
      info in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
    • info

      public void info(String message, Throwable throwable)
      No-op.
      Specified by:
      info in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
      throwable - ignored
    • isInfoEnabled

      public boolean isInfoEnabled()
      No-op.
      Specified by:
      isInfoEnabled in interface org.apache.avalon.framework.logger.Logger
      Returns:
      false
    • warn

      public void warn(String message)
      No-op.
      Specified by:
      warn in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
    • warn

      public void warn(String message, Throwable throwable)
      No-op.
      Specified by:
      warn in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
      throwable - ignored
    • isWarnEnabled

      public boolean isWarnEnabled()
      No-op.
      Specified by:
      isWarnEnabled in interface org.apache.avalon.framework.logger.Logger
      Returns:
      false
    • error

      public void error(String message)
      No-op.
      Specified by:
      error in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
    • error

      public void error(String message, Throwable throwable)
      No-op.
      Specified by:
      error in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
      throwable - ignored
    • isErrorEnabled

      public boolean isErrorEnabled()
      No-op.
      Specified by:
      isErrorEnabled in interface org.apache.avalon.framework.logger.Logger
      Returns:
      false
    • fatalError

      public void fatalError(String message)
      No-op.
      Specified by:
      fatalError in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
    • fatalError

      public void fatalError(String message, Throwable throwable)
      No-op.
      Specified by:
      fatalError in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      message - ignored
      throwable - ignored
    • isFatalErrorEnabled

      public boolean isFatalErrorEnabled()
      No-op.
      Specified by:
      isFatalErrorEnabled in interface org.apache.avalon.framework.logger.Logger
      Returns:
      false
    • getChildLogger

      public org.apache.avalon.framework.logger.Logger getChildLogger(String name)
      Returns this NullLogger.
      Specified by:
      getChildLogger in interface org.apache.avalon.framework.logger.Logger
      Parameters:
      name - ignored
      Returns:
      this NullLogger