|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for loggin system. All components should take this interface on create and use it for logging. Actual implementations may use Log4J or another underlying log system.
Nested Class Summary | |
static class |
Logger.Console
Console logger implementation |
static class |
Logger.Empty
Empty logger implementation. |
Field Summary | |
static Logger |
CONSOLE
Simple console logger. |
static Logger |
EMPTY
Empty logger. |
Method Summary | |
void |
debug(java.lang.Object message)
Logs debug message |
void |
error(java.lang.Object message)
Logs error message |
void |
fatal(java.lang.Object message)
Logs fatal message |
Logger |
getLogger(java.lang.Class clazz)
Returns another logger for given class. |
Logger |
getLogger(java.lang.String name)
Returns another logger for given name. |
void |
info(java.lang.Object message)
Logs info message |
void |
warn(java.lang.Object message)
Logs warning message |
Field Detail |
public static final Logger EMPTY
public static final Logger CONSOLE
Method Detail |
public Logger getLogger(java.lang.String name)
name
- new logger name
public Logger getLogger(java.lang.Class clazz)
clazz
- class to return logger for
public void info(java.lang.Object message)
message
- message to logpublic void warn(java.lang.Object message)
message
- message to logpublic void debug(java.lang.Object message)
message
- message to logpublic void error(java.lang.Object message)
message
- message to logpublic void fatal(java.lang.Object message)
message
- message to log
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |