org.codehaus.plexus.logging

Interface Logger

Known Implementing Classes:
AbstractLogger

public interface Logger

Version:
$Id: Logger.java 4796 2006-11-23 21:24:11Z jvanzyl $
Authors:
Jason van Zyl
Trygve Laugstøl

Field Summary

static int
LEVEL_DEBUG
Typecode for debugging messages.
static int
LEVEL_DISABLED
Typecode for disabled log levels.
static int
LEVEL_ERROR
Typecode for error messages.
static int
LEVEL_FATAL
Typecode for fatal error messages.
static int
LEVEL_INFO
Typecode for informational messages.
static int
LEVEL_WARN
Typecode for warning messages.

Method Summary

void
debug(String message)
void
debug(String message, Throwable throwable)
void
error(String message)
void
error(String message, Throwable throwable)
void
fatalError(String message)
void
fatalError(String message, Throwable throwable)
Logger
getChildLogger(String name)
String
getName()
int
getThreshold()
void
info(String message)
void
info(String message, Throwable throwable)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isFatalErrorEnabled()
boolean
isInfoEnabled()
boolean
isWarnEnabled()
void
setThreshold(int threshold)
void
warn(String message)
void
warn(String message, Throwable throwable)

Field Details

LEVEL_DEBUG

public static final int LEVEL_DEBUG
Typecode for debugging messages.
Field Value:
0

LEVEL_DISABLED

public static final int LEVEL_DISABLED
Typecode for disabled log levels.
Field Value:
5

LEVEL_ERROR

public static final int LEVEL_ERROR
Typecode for error messages.
Field Value:
3

LEVEL_FATAL

public static final int LEVEL_FATAL
Typecode for fatal error messages.
Field Value:
4

LEVEL_INFO

public static final int LEVEL_INFO
Typecode for informational messages.
Field Value:
1

LEVEL_WARN

public static final int LEVEL_WARN
Typecode for warning messages.
Field Value:
2

Method Details

debug

public void debug(String message)

debug

public void debug(String message,
                  Throwable throwable)

error

public void error(String message)

error

public void error(String message,
                  Throwable throwable)

fatalError

public void fatalError(String message)

fatalError

public void fatalError(String message,
                       Throwable throwable)

getChildLogger

public Logger getChildLogger(String name)

getName

public String getName()

getThreshold

public int getThreshold()

info

public void info(String message)

info

public void info(String message,
                 Throwable throwable)

isDebugEnabled

public boolean isDebugEnabled()

isErrorEnabled

public boolean isErrorEnabled()

isFatalErrorEnabled

public boolean isFatalErrorEnabled()

isInfoEnabled

public boolean isInfoEnabled()

isWarnEnabled

public boolean isWarnEnabled()

setThreshold

public void setThreshold(int threshold)

warn

public void warn(String message)

warn

public void warn(String message,
                 Throwable throwable)