|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Logger
Simple interface for logging and tracing. The reason we don't use commons-logging or some other logging library is because Cargo is a framework. As such we don't want to force the user to include an additional library and more importantly we want to remain open so that applications using Cargo will be able to adapt it to their favorite logging system, whatever that is.
Method Summary | |
---|---|
void |
debug(String message,
String category)
Logger debug messages. |
LogLevel |
getLevel()
|
void |
info(String message,
String category)
Logger informational messages. |
void |
setLevel(LogLevel level)
|
void |
warn(String message,
String category)
Logger warning messages. |
Method Detail |
---|
void setLevel(LogLevel level)
level
- the logging level above which the logger will logLogLevel getLevel()
void info(String message, String category)
message
- the message to logcategory
- the log category (usually this is the full name
of the class being logged but it can be anything)void warn(String message, String category)
message
- the message to logcategory
- the log category (usually this is the full name
of the class being logged but it can be anything)void debug(String message, String category)
message
- the message to logcategory
- the log category (usually this is the full name
of the class being logged but it can be anything)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |