org.codehaus.plexus.logging

Class AbstractLogger

Implemented Interfaces:
Logger

public abstract class AbstractLogger
extends Object
implements Logger

Version:
$Id: AbstractLogger.java 4796 2006-11-23 21:24:11Z jvanzyl $
Author:
Trygve Laugstøl

Fields inherited from interface org.codehaus.plexus.logging.Logger

LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN

Constructor Summary

AbstractLogger(int threshold, String name)

Method Summary

void
debug(String message)
void
error(String message)
void
fatalError(String message)
String
getName()
int
getThreshold()
void
info(String message)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isFatalErrorEnabled()
boolean
isInfoEnabled()
protected boolean
isValidThreshold(int threshold)
boolean
isWarnEnabled()
void
setThreshold(int threshold)
void
warn(String message)

Constructor Details

AbstractLogger

public AbstractLogger(int threshold,
                      String name)

Method Details

debug

public void debug(String message)
Specified by:
debug in interface Logger

error

public void error(String message)
Specified by:
error in interface Logger

fatalError

public void fatalError(String message)
Specified by:
fatalError in interface Logger

getName

public String getName()
Specified by:
getName in interface Logger

getThreshold

public int getThreshold()
Specified by:
getThreshold in interface Logger

info

public void info(String message)
Specified by:
info in interface Logger

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Logger

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface Logger

isFatalErrorEnabled

public boolean isFatalErrorEnabled()
Specified by:
isFatalErrorEnabled in interface Logger

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface Logger

isValidThreshold

protected boolean isValidThreshold(int threshold)

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface Logger

setThreshold

public void setThreshold(int threshold)
Specified by:
setThreshold in interface Logger

warn

public void warn(String message)
Specified by:
warn in interface Logger