Class AbstractLogger
- java.lang.Object
-
- org.codehaus.cargo.util.internal.log.AbstractLogger
-
- All Implemented Interfaces:
Logger
- Direct Known Subclasses:
AntLogger
,FileLogger
,MavenLogger
,NullLogger
,SimpleLogger
public abstract class AbstractLogger extends Object implements Logger
Base clas for all Loggers.
-
-
Constructor Summary
Constructors Constructor Description AbstractLogger()
Default logging level is WARN.AbstractLogger(LogLevel level)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
debug(String message, String category)
Logger debug messages.protected abstract void
doLog(LogLevel level, String message, String category)
Common method for all severity levels.LogLevel
getLevel()
void
info(String message, String category)
Logger informational messages.void
setLevel(LogLevel level)
void
warn(String message, String category)
Logger warning messages.
-
-
-
Constructor Detail
-
AbstractLogger
public AbstractLogger(LogLevel level)
- Parameters:
level
- the logging level above which the logger will log
-
AbstractLogger
public AbstractLogger()
Default logging level is WARN.
-
-
Method Detail
-
setLevel
public void setLevel(LogLevel level)
-
getLevel
public LogLevel getLevel()
-
-