org.codehaus.plexus.logging

Interface Logger

public interface Logger

Version: $Id: Logger.java 6965 2007-10-21 05:32:27Z jvanzyl $

Author: Jason van Zyl Trygve Laugstøl

Field Summary
intLEVEL_DEBUG
Typecode for debugging messages.
intLEVEL_DISABLED
Typecode for disabled log levels.
intLEVEL_ERROR
Typecode for error messages.
intLEVEL_FATAL
Typecode for fatal error messages.
intLEVEL_INFO
Typecode for informational messages.
intLEVEL_WARN
Typecode for warning messages.
Method Summary
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

public int LEVEL_DEBUG
Typecode for debugging messages.

LEVEL_DISABLED

public int LEVEL_DISABLED
Typecode for disabled log levels.

LEVEL_ERROR

public int LEVEL_ERROR
Typecode for error messages.

LEVEL_FATAL

public int LEVEL_FATAL
Typecode for fatal error messages.

LEVEL_INFO

public int LEVEL_INFO
Typecode for informational messages.

LEVEL_WARN

public int LEVEL_WARN
Typecode for warning messages.

Method Detail

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)