|
||||||||||
| 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(java.lang.String message,
java.lang.String category)
Logger debug messages. |
protected abstract void |
doLog(LogLevel level,
java.lang.String message,
java.lang.String category)
Common method for all severity levels. |
LogLevel |
getLevel()
|
void |
info(java.lang.String message,
java.lang.String category)
Logger informational messages. |
void |
setLevel(LogLevel level)
|
void |
warn(java.lang.String message,
java.lang.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 Loggerlevel - the logging level above which the logger will logLogger.setLevel(org.codehaus.cargo.util.log.LogLevel)public LogLevel getLevel()
getLevel in interface LoggerLogger.getLevel()
public void warn(java.lang.String message,
java.lang.String category)
warn in interface Loggermessage - 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(java.lang.String message,
java.lang.String category)
info in interface Loggermessage - 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(java.lang.String message,
java.lang.String category)
debug in interface Loggermessage - 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,
java.lang.String message,
java.lang.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 | |||||||||