|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LogTarget
An interface that defines a log target (a consumer of log messages). Classes which
implement this interface can be registered with the Log class
and will then receive logging messages generated by the code.
| Field Summary | |
|---|---|
static int |
DEBUG
Loglevel DEBUG. |
static int |
ERROR
Loglevel ERROR. |
static int |
INFO
Loglevel INFO. |
static java.lang.String[] |
LEVELS
Strings for the log levels. |
static int |
WARN
Loglevel WARN. |
| Method Summary | |
|---|---|
void |
log(int level,
java.lang.Object message)
Logs a message at a specified log level. |
void |
log(int level,
java.lang.Object message,
java.lang.Exception e)
Logs a message at a specified log level. |
| Field Detail |
|---|
static final int ERROR
static final int WARN
static final int INFO
static final int DEBUG
static final java.lang.String[] LEVELS
| Method Detail |
|---|
void log(int level,
java.lang.Object message)
level - the log level.message - the log message.
void log(int level,
java.lang.Object message,
java.lang.Exception e)
level - the log level.message - the log message.e - the exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||