Class NullLogger
java.lang.Object
org.apache.avalon.framework.logger.NullLogger
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
No-op.void
No-op.void
No-op.void
No-op.void
fatalError
(String message) No-op.void
fatalError
(String message, Throwable throwable) No-op.org.apache.avalon.framework.logger.Logger
getChildLogger
(String name) Returns thisNullLogger
.void
No-op.void
No-op.boolean
No-op.boolean
No-op.boolean
No-op.boolean
No-op.boolean
No-op.void
No-op.void
No-op.
-
Constructor Details
-
NullLogger
public NullLogger()Creates a newNullLogger
.
-
-
Method Details
-
debug
No-op.- Specified by:
debug
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignored
-
debug
No-op.- Specified by:
debug
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignoredthrowable
- ignored
-
isDebugEnabled
public boolean isDebugEnabled()No-op.- Specified by:
isDebugEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
false
-
info
No-op.- Specified by:
info
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignored
-
info
No-op.- Specified by:
info
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignoredthrowable
- ignored
-
isInfoEnabled
public boolean isInfoEnabled()No-op.- Specified by:
isInfoEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
false
-
warn
No-op.- Specified by:
warn
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignored
-
warn
No-op.- Specified by:
warn
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignoredthrowable
- ignored
-
isWarnEnabled
public boolean isWarnEnabled()No-op.- Specified by:
isWarnEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
false
-
error
No-op.- Specified by:
error
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignored
-
error
No-op.- Specified by:
error
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignoredthrowable
- ignored
-
isErrorEnabled
public boolean isErrorEnabled()No-op.- Specified by:
isErrorEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
false
-
fatalError
No-op.- Specified by:
fatalError
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignored
-
fatalError
No-op.- Specified by:
fatalError
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
message
- ignoredthrowable
- ignored
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()No-op.- Specified by:
isFatalErrorEnabled
in interfaceorg.apache.avalon.framework.logger.Logger
- Returns:
false
-
getChildLogger
Returns thisNullLogger
.- Specified by:
getChildLogger
in interfaceorg.apache.avalon.framework.logger.Logger
- Parameters:
name
- ignored- Returns:
- this
NullLogger
-