|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.logging.NilLogger
public class NilLogger
This class implements the Logger interface but doesn't write anything to any output device. It could be used to provide a dummy logger implementation for an application that wants to use logging, but has no logging component available (in the classpath).
| Constructor Summary | |
|---|---|
NilLogger()
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
void |
initialize(java.util.Properties properties)
Initialize the logger from the given properties settings. |
boolean |
isLoggingDebugs()
Returns true, if debug messages will be written to the output device(s). |
boolean |
isLoggingErrors()
Returns true, if errors will be written to the output device(s). |
boolean |
isLoggingInfos()
Returns true, if info messages will be written to the output device(s). |
boolean |
isLoggingWarnings()
Returns true, if warnings will be written to the output device(s). |
void |
logDebug(java.lang.String message)
If the logging level is DEBUG the given message will be written to the log output device(s). |
void |
logError(java.lang.String message)
If the logging level is DEBUG, INFO, WARNING or ERROR the given message will be written to the log output device(s). |
void |
logError(java.lang.String message,
java.lang.Throwable exception)
If the logging level is DEBUG, INFO, WARNING or ERROR the given message and the exception will be written to the log output device(s). |
void |
logException(java.lang.Throwable ex)
Writes the given exception to the log output device(s). |
void |
logInfo(java.lang.String message)
If the logging level is INFO or DEBUG the given message will be written to the log output device(s). |
void |
logWarning(java.lang.String message)
If the logging level is DEBUG, INFO or WARNING the given message will be written to the log output device(s). |
void |
logWarning(java.lang.String message,
java.lang.Throwable exception)
If the logging level is DEBUG, INFO or WARNING the given message and the exception will be written to the log output device(s). |
boolean |
setLogLevel(java.lang.String logLevel)
Changes the log level to the specified level. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NilLogger()
| Method Detail |
|---|
public void initialize(java.util.Properties properties)
initialize in interface Loggerpublic void logException(java.lang.Throwable ex)
logException in interface Loggerpublic void logDebug(java.lang.String message)
logDebug in interface Loggerpublic void logInfo(java.lang.String message)
logInfo in interface Loggerpublic void logWarning(java.lang.String message)
logWarning in interface Loggerpublic void logError(java.lang.String message)
logError in interface Logger
public void logWarning(java.lang.String message,
java.lang.Throwable exception)
logWarning in interface Logger
public void logError(java.lang.String message,
java.lang.Throwable exception)
logError in interface Loggerpublic boolean isLoggingDebugs()
isLoggingDebugs in interface Loggerpublic boolean isLoggingInfos()
isLoggingInfos in interface Loggerpublic boolean isLoggingWarnings()
isLoggingWarnings in interface Loggerpublic boolean isLoggingErrors()
isLoggingErrors in interface Loggerpublic boolean setLogLevel(java.lang.String logLevel)
setLogLevel in interface Logger
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||