Package org.codehaus.plexus.logging
Interface Logger
-
- All Known Implementing Classes:
AbstractLogger,ConsoleLogger
public interface Logger- Author:
- Jason van Zyl, Trygve Laugstøl
-
-
Field Summary
Fields Modifier and Type Field Description static intLEVEL_DEBUGTypecode for debugging messages.static intLEVEL_DISABLEDTypecode for disabled log levels.static intLEVEL_ERRORTypecode for error messages.static intLEVEL_FATALTypecode for fatal error messages.static intLEVEL_INFOTypecode for informational messages.static intLEVEL_WARNTypecode for warning messages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddebug(String message)voiddebug(String message, Throwable throwable)voiderror(String message)voiderror(String message, Throwable throwable)voidfatalError(String message)voidfatalError(String message, Throwable throwable)LoggergetChildLogger(String name)StringgetName()intgetThreshold()voidinfo(String message)voidinfo(String message, Throwable throwable)booleanisDebugEnabled()booleanisErrorEnabled()booleanisFatalErrorEnabled()booleanisInfoEnabled()booleanisWarnEnabled()voidsetThreshold(int threshold)voidwarn(String message)voidwarn(String message, Throwable throwable)
-
-
-
Field Detail
-
LEVEL_DEBUG
static final int LEVEL_DEBUG
Typecode for debugging messages.- See Also:
- Constant Field Values
-
LEVEL_INFO
static final int LEVEL_INFO
Typecode for informational messages.- See Also:
- Constant Field Values
-
LEVEL_WARN
static final int LEVEL_WARN
Typecode for warning messages.- See Also:
- Constant Field Values
-
LEVEL_ERROR
static final int LEVEL_ERROR
Typecode for error messages.- See Also:
- Constant Field Values
-
LEVEL_FATAL
static final int LEVEL_FATAL
Typecode for fatal error messages.- See Also:
- Constant Field Values
-
LEVEL_DISABLED
static final int LEVEL_DISABLED
Typecode for disabled log levels.- See Also:
- Constant Field Values
-
-
Method Detail
-
debug
void debug(String message)
-
isDebugEnabled
boolean isDebugEnabled()
-
info
void info(String message)
-
isInfoEnabled
boolean isInfoEnabled()
-
warn
void warn(String message)
-
isWarnEnabled
boolean isWarnEnabled()
-
error
void error(String message)
-
isErrorEnabled
boolean isErrorEnabled()
-
fatalError
void fatalError(String message)
-
isFatalErrorEnabled
boolean isFatalErrorEnabled()
-
getThreshold
int getThreshold()
-
setThreshold
void setThreshold(int threshold)
-
getName
String getName()
-
-