public abstract class AbstractLogger extends Object implements Logger
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
Constructor and Description |
---|
AbstractLogger(int threshold,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String message) |
void |
error(String message) |
void |
fatalError(String message) |
String |
getName() |
int |
getThreshold() |
void |
info(String message) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalErrorEnabled() |
boolean |
isInfoEnabled() |
protected boolean |
isValidThreshold(int threshold) |
boolean |
isWarnEnabled() |
void |
setThreshold(int threshold) |
void |
warn(String message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
debug, error, fatalError, getChildLogger, info, warn
public AbstractLogger(int threshold, String name)
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(String message)
fatalError
in interface Logger
public boolean isFatalErrorEnabled()
isFatalErrorEnabled
in interface Logger
protected boolean isValidThreshold(int threshold)
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.