|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.NullLogger
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.
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 |
public NullLogger()
NullLogger
.
Method Detail |
public void debug(java.lang.String message)
debug
in interface Logger
message
- ignoredpublic void debug(java.lang.String message, java.lang.Throwable throwable)
debug
in interface Logger
message
- ignoredthrowable
- ignoredpublic boolean isDebugEnabled()
isDebugEnabled
in interface Logger
false
public void info(java.lang.String message)
info
in interface Logger
message
- ignoredpublic void info(java.lang.String message, java.lang.Throwable throwable)
info
in interface Logger
message
- ignoredthrowable
- ignoredpublic boolean isInfoEnabled()
isInfoEnabled
in interface Logger
false
public void warn(java.lang.String message)
warn
in interface Logger
message
- ignoredpublic void warn(java.lang.String message, java.lang.Throwable throwable)
warn
in interface Logger
message
- ignoredthrowable
- ignoredpublic boolean isWarnEnabled()
isWarnEnabled
in interface Logger
false
public void error(java.lang.String message)
error
in interface Logger
message
- ignoredpublic void error(java.lang.String message, java.lang.Throwable throwable)
error
in interface Logger
message
- ignoredthrowable
- ignoredpublic boolean isErrorEnabled()
isErrorEnabled
in interface Logger
false
public void fatalError(java.lang.String message)
fatalError
in interface Logger
message
- ignoredpublic void fatalError(java.lang.String message, java.lang.Throwable throwable)
fatalError
in interface Logger
message
- ignoredthrowable
- ignoredpublic boolean isFatalErrorEnabled()
isFatalErrorEnabled
in interface Logger
false
public Logger getChildLogger(java.lang.String name)
NullLogger
.
getChildLogger
in interface Logger
name
- ignored
NullLogger
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |