Package org.codehaus.plexus.logging
Class AbstractLogger
java.lang.Object
org.codehaus.plexus.logging.AbstractLogger
- All Implemented Interfaces:
Logger
- Direct Known Subclasses:
ConsoleLogger
- 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
fatalError
(String message) getName()
int
void
boolean
boolean
boolean
boolean
protected boolean
isValidThreshold
(int threshold) boolean
void
setThreshold
(int threshold) void
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 Details
-
AbstractLogger
-
-
Method Details
-
getThreshold
public int getThreshold()- Specified by:
getThreshold
in interfaceLogger
-
setThreshold
public void setThreshold(int threshold) - Specified by:
setThreshold
in interfaceLogger
-
getName
-
debug
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceLogger
-
info
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceLogger
-
warn
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabled
in interfaceLogger
-
error
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceLogger
-
fatalError
- Specified by:
fatalError
in interfaceLogger
-
isFatalErrorEnabled
public boolean isFatalErrorEnabled()- Specified by:
isFatalErrorEnabled
in interfaceLogger
-
isValidThreshold
protected boolean isValidThreshold(int threshold)
-