Modifier and Type | Field and Description |
---|---|
protected boolean |
loggerEnabled
True if logger enabled.
|
Constructor and Description |
---|
DummyLogger()
Create a dummy logger.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDebuggingEnabled()
Returns true if debugging messages are enabled.
|
boolean |
isLoggerEnabled()
Returns true if logger is enabled.
|
void |
log(int level,
java.lang.String str)
Logs a message.
|
void |
log(int level,
java.lang.String str,
java.lang.Throwable t)
Logs a message with a stack trace.
|
void |
logDebug(java.lang.String str)
Logs a message at the DEBUG level.
|
void |
logError(java.lang.String str)
Logs a message at the ERROR level.
|
void |
logError(java.lang.String str,
java.lang.Throwable t)
Logs a error message with a stack trace.
|
void |
logFatal(java.lang.String str)
Logs a message at the FATAL level.
|
void |
logFatal(java.lang.String str,
java.lang.Throwable t)
Logs a fatal message with a stack trace.
|
void |
logInfo(java.lang.String str)
Logs a message at the INFO level.
|
void |
logWarning(java.lang.String str)
Logs a message at the WARN level.
|
void |
terminate()
Terminates the logger.
|
public void terminate()
public void logDebug(java.lang.String str)
public void logInfo(java.lang.String str)
public void logWarning(java.lang.String str)
logWarning
in interface Logger
str
- Log message.public void logError(java.lang.String str)
public void logError(java.lang.String str, java.lang.Throwable t)
public void logFatal(java.lang.String str)
public void logFatal(java.lang.String str, java.lang.Throwable t)
public void log(int level, java.lang.String str)
public void log(int level, java.lang.String str, java.lang.Throwable t)
public boolean isDebuggingEnabled()
isDebuggingEnabled
in interface Logger
public boolean isLoggerEnabled()
isLoggerEnabled
in interface Logger