|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILog
The log interface. You need to implement this interface if you want to support a logger (eg commons-logging, log4j, jdk logging); It is assumed that the implementor provides a setName(String name);
Field Summary | |
---|---|
static int |
ALL
Use the default log level.. |
static int |
DEBUG
|
static int |
DEFAULT
Default is level ERROR. |
static int |
ERROR
|
static int |
FATAL
|
static int |
INFO
|
static int |
OFF
|
static int |
WARN
|
Method Summary | |
---|---|
void |
destroy()
destroy the log |
java.lang.String |
getName()
|
void |
init(java.lang.String name)
Initialize the log |
void |
log(int level,
java.lang.String name,
java.lang.String message)
Log a message |
void |
log(int level,
java.lang.String name,
java.lang.String message,
java.lang.Throwable t)
Log a message |
Field Detail |
---|
static final int ALL
static final int DEBUG
static final int INFO
static final int WARN
static final int ERROR
static final int FATAL
static final int OFF
static final int DEFAULT
Method Detail |
---|
void init(java.lang.String name)
name
- the name the logger is registered under.void destroy()
void log(int level, java.lang.String name, java.lang.String message)
level
- the level to usename
- the name to use (used as eg a prefix in the logging output)message
- the log messagevoid log(int level, java.lang.String name, java.lang.String message, java.lang.Throwable t)
level
- the level to usename
- the name to use (used as eg a prefix in the logging output)message
- the log messaget
- the exception to logjava.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |