Package org.codehaus.plexus.logging
Class AbstractLogger
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogger
-
- All Implemented Interfaces:
Logger
- Direct Known Subclasses:
ConsoleLogger
public abstract class AbstractLogger extends Object implements Logger
- Author:
- Trygve Laugstøl
-
-
Field Summary
-
Fields inherited from interface org.codehaus.plexus.logging.Logger
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
-
-
Constructor Summary
Constructors Constructor Description AbstractLogger(int threshold, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String message)voiderror(String message)voidfatalError(String message)StringgetName()intgetThreshold()voidinfo(String message)booleanisDebugEnabled()booleanisErrorEnabled()booleanisFatalErrorEnabled()booleanisInfoEnabled()protected booleanisValidThreshold(int threshold)booleanisWarnEnabled()voidsetThreshold(int threshold)voidwarn(String message)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.plexus.logging.Logger
debug, error, fatalError, getChildLogger, info, warn
-
-
-
-
Constructor Detail
-
AbstractLogger
public AbstractLogger(int threshold, String name)
-
-
Method Detail
-
getThreshold
public int getThreshold()
- Specified by:
getThresholdin interfaceLogger
-
setThreshold
public void setThreshold(int threshold)
- Specified by:
setThresholdin interfaceLogger
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabledin interfaceLogger
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabledin interfaceLogger
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabledin interfaceLogger
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabledin interfaceLogger
-
fatalError
public void fatalError(String message)
- Specified by:
fatalErrorin interfaceLogger
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()
- Specified by:
isFatalErrorEnabledin interfaceLogger
-
isValidThreshold
protected boolean isValidThreshold(int threshold)
-
-