org.codehaus.plexus.logging

Interface Logger

Known Implementing Classes:
AbstractLogger, ConsoleLogger

public interface Logger

Version:
$Id: Logger.java 1323 2004-12-20 23:00:59Z 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)
This one probably shouldn't be deprecated after all.
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
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)
This one probably shouldn't be deprecated after all. One useful use case is when you have a server that creates a lot of threads and would like to create a child logger pr thread.

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()

warn

public void warn(String message)

warn

public void warn(String message,
                 Throwable throwable)