public abstract class AbstractLogger extends Object implements Logger
Constructor and Description |
---|
AbstractLogger()
Default logging level is WARN.
|
AbstractLogger(LogLevel level) |
Modifier and Type | Method and 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.
|
public AbstractLogger(LogLevel level)
level
- the logging level above which the logger will logpublic AbstractLogger()
public void setLevel(LogLevel level)
setLevel
in interface Logger
level
- the logging level above which the logger will logLogger.setLevel(org.codehaus.cargo.util.log.LogLevel)
public LogLevel getLevel()
getLevel
in interface Logger
Logger.getLevel()
public void warn(String message, String category)
warn
in interface Logger
message
- the message to logcategory
- the log category (usually this is the full name
of the class being logged but it can be anything)Logger.warn(String, String)
public void info(String message, String category)
info
in interface Logger
message
- the message to logcategory
- the log category (usually this is the full name
of the class being logged but it can be anything)Logger.info(String, String)
public void debug(String message, String category)
debug
in interface Logger
message
- the message to logcategory
- the log category (usually this is the full name
of the class being logged but it can be anything)Logger.debug(String, String)
Copyright © 2004-2013 Codehaus. All Rights Reserved.