|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Logger
block interface.
Field Summary | |
static int |
CRITICAL
The CRITICAL logging level (anything logged under this level means that a critical temporary error was detected). |
static int |
DEBUG
The DEBUG logging level (anything logged under this level means that an debug message must be logged). |
static int |
EMERGENCY
The EMERGENCY logging level (anything logged under this level means that a critical permanent error was detected). |
static int |
ERROR
The ERROR logging level (anything logged under this level means that a non-critical error was detected). |
static int |
INFO
The INFO logging level (anything logged under this level means that an informative message must be logged). |
static int |
WARNING
The WARNING logging level (anything logged under this level means that a generic error was detected). |
Method Summary | |
void |
log(java.lang.Object data)
Log an object. |
void |
log(java.lang.Object data,
int level)
Log an object with the specified level. |
void |
log(java.lang.Object data,
java.lang.String channel,
int level)
Log an object thru the specified channel and with the specified level. |
Field Detail |
public static final int EMERGENCY
Block
logs something with this level means that
any other task will be impossible without administrator's intervention.
Example:
public static final int CRITICAL
Block
logs something with this level means that
tasks similar to the one generating the error will be impossible
without administrator's intervention, but other tasks (maybe using
different resources) will be possible.
Example:
public static final int ERROR
Block
logs something with this level means that
the current tasks failed to execute, but the stability of the block is
not compromised.
Example:
public static final int WARNING
Block
logs something with this level means that
the current tasks failed to execute due to inconsistencies in the
request handled by the block.
Example:
public static final int INFO
Block
logs something with this level means that
something that may be interesting happened.
Example:
public static final int DEBUG
Block
logs something with this level means that
something that may be interesting while developing, tracking bugs or
misconfigurations.
Example:
Method Detail |
public void log(java.lang.Object data, java.lang.String channel, int level)
data
- The object to log.channel
- The channel name used for logging.level
- The level used for logging.public void log(java.lang.Object data, int level)
data
- The object to log.level
- The level used for logging.public void log(java.lang.Object data)
data
- The object to log.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |