org.codehaus.plexus.logging
Class AbstractLogger

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogger
All Implemented Interfaces:
Logger
Direct Known Subclasses:
ConsoleLogger

public abstract class AbstractLogger
extends java.lang.Object
implements Logger


Field Summary
 
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, java.lang.String name)
           
 
Method Summary
 void debug(java.lang.String message)
           
 void error(java.lang.String message)
           
 void fatalError(java.lang.String message)
           
 java.lang.String getName()
           
 int getThreshold()
           
 void info(java.lang.String message)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalErrorEnabled()
           
 boolean isInfoEnabled()
           
 boolean isWarnEnabled()
           
 void setThreshold(int threshold)
           
 void warn(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.plexus.logging.Logger
debug, error, fatalError, getChildLogger, info, warn
 

Constructor Detail

AbstractLogger

public AbstractLogger(int threshold,
                      java.lang.String name)
Method Detail

debug

public final void debug(java.lang.String message)
Specified by:
debug in interface Logger

isDebugEnabled

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

info

public final void info(java.lang.String message)
Specified by:
info in interface Logger

isInfoEnabled

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

warn

public final void warn(java.lang.String message)
Specified by:
warn in interface Logger

isWarnEnabled

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

error

public final void error(java.lang.String message)
Specified by:
error in interface Logger

isErrorEnabled

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

fatalError

public final void fatalError(java.lang.String message)
Specified by:
fatalError in interface Logger

isFatalErrorEnabled

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

getThreshold

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

setThreshold

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

getName

public final java.lang.String getName()
Specified by:
getName in interface Logger


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.