|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.util.internal.log.AbstractLogger
public abstract class AbstractLogger
Base clas for all Loggers.
Constructor Summary | |
---|---|
AbstractLogger()
Default logging level is WARN. |
|
AbstractLogger(LogLevel level)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractLogger(LogLevel level)
level
- the logging level above which the logger will logpublic AbstractLogger()
Method Detail |
---|
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)
protected abstract void doLog(LogLevel level, String message, String category)
level
- the log level (aka severity) of the messagemessage
- the message to logcategory
- the log category
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |