|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Logger
This interface provides methodes to log a message with different log level. Note that the levels are ordered in these standard level DEBUG < INFO < WARN < ERROR < FATAL.
| Method Summary | |
|---|---|
void |
error(java.lang.Class aClass,
java.lang.Exception e)
Log the exception with log level error |
void |
error(java.lang.Class aClass,
java.lang.String message)
Log the message with log level error |
void |
fatal(java.lang.Class aClass,
java.lang.Exception e)
Log the exception with log level fatal |
void |
fatal(java.lang.Class aClass,
java.lang.String message)
Log the message with log level fatal |
java.lang.String |
getLogFileUrl()
|
void |
info(java.lang.Class aClass,
java.lang.String message)
Log the message with log level info |
void |
log(java.lang.Class aClass,
java.lang.String message)
Log the message with log level log |
boolean |
logErrors()
|
boolean |
logFatals()
|
boolean |
logInfos()
|
boolean |
logLogs()
|
boolean |
logWarnings()
|
void |
setLogFileUrl(java.lang.String logFileUrl)
|
void |
setLogLevels(java.lang.String[] logLevels)
|
void |
warn(java.lang.Class aClass,
java.lang.String message)
Log the message with log level warn |
| Method Detail |
|---|
void error(java.lang.Class aClass,
java.lang.Exception e)
aClass - the class where the message comese - the exception to log
void error(java.lang.Class aClass,
java.lang.String message)
aClass - the class where the message comesmessage - the message to log
void fatal(java.lang.Class aClass,
java.lang.Exception e)
aClass - the class where the message comese - the exception to log
void fatal(java.lang.Class aClass,
java.lang.String message)
aClass - the class where the message comesmessage - the message to logjava.lang.String getLogFileUrl()
void info(java.lang.Class aClass,
java.lang.String message)
aClass - the class where the message comesmessage - the message to log
void log(java.lang.Class aClass,
java.lang.String message)
aClass - the class where the message comesmessage - the message to logboolean logErrors()
boolean logFatals()
boolean logInfos()
boolean logLogs()
boolean logWarnings()
void setLogFileUrl(java.lang.String logFileUrl)
void setLogLevels(java.lang.String[] logLevels)
void warn(java.lang.Class aClass,
java.lang.String message)
aClass - the class where the message comesmessage - the message to log
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||