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 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)
-
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:
getThreshold
in interfaceLogger
-
setThreshold
public void setThreshold(int threshold)
- Specified by:
setThreshold
in interfaceLogger
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceLogger
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceLogger
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceLogger
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceLogger
-
fatalError
public void fatalError(String message)
- Specified by:
fatalError
in interfaceLogger
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()
- Specified by:
isFatalErrorEnabled
in interfaceLogger
-
isValidThreshold
protected boolean isValidThreshold(int threshold)
-
-