org.codehaus.plexus.logging
Class AbstractLogger
java.lang.Object
org.codehaus.plexus.logging.AbstractLogger
- All Implemented Interfaces:
- Logger
- Direct Known Subclasses:
- ConsoleLogger
public abstract class AbstractLogger
- extends java.lang.Object
- implements Logger
- Version:
- $Id: AbstractLogger.java 6965 2007-10-21 05:32:27Z jvanzyl $
- Author:
- Trygve Laugstøl
Constructor Summary |
AbstractLogger(int threshold,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLogger
public AbstractLogger(int threshold,
java.lang.String name)
getThreshold
public int getThreshold()
- Specified by:
getThreshold
in interface Logger
setThreshold
public void setThreshold(int threshold)
- Specified by:
setThreshold
in interface Logger
getName
public java.lang.String getName()
- Specified by:
getName
in interface Logger
debug
public void debug(java.lang.String message)
- Specified by:
debug
in interface Logger
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interface Logger
info
public void info(java.lang.String message)
- Specified by:
info
in interface Logger
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interface Logger
warn
public void warn(java.lang.String message)
- Specified by:
warn
in interface Logger
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interface Logger
error
public void error(java.lang.String message)
- Specified by:
error
in interface Logger
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interface Logger
fatalError
public void fatalError(java.lang.String message)
- Specified by:
fatalError
in interface Logger
isFatalErrorEnabled
public boolean isFatalErrorEnabled()
- Specified by:
isFatalErrorEnabled
in interface Logger
isValidThreshold
protected boolean isValidThreshold(int threshold)
Copyright © 2001-2009 Codehaus. All Rights Reserved.