Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private int |
threshold |
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
Constructor and Description |
---|
AbstractLogger(int threshold,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String message) |
void |
error(java.lang.String message) |
void |
fatalError(java.lang.String message) |
java.lang.String |
getName() |
int |
getThreshold() |
void |
info(java.lang.String message) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalErrorEnabled() |
boolean |
isInfoEnabled() |
protected boolean |
isValidThreshold(int threshold) |
boolean |
isWarnEnabled() |
void |
setThreshold(int threshold) |
void |
warn(java.lang.String message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
debug, error, fatalError, getChildLogger, info, warn
public int getThreshold()
getThreshold
in interface Logger
public void setThreshold(int threshold)
setThreshold
in interface Logger
public boolean isDebugEnabled()
isDebugEnabled
in interface Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface Logger
public boolean isWarnEnabled()
isWarnEnabled
in interface Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface Logger
public void fatalError(java.lang.String message)
fatalError
in interface Logger
public boolean isFatalErrorEnabled()
isFatalErrorEnabled
in interface Logger
protected boolean isValidThreshold(int threshold)