|
|||||||||
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 java.lang.String |
DEFAULT_CHANNEL
Specify the default string for logging without a channel. |
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 | |
int |
getLoggerLevel()
Get the logger level for the default channel |
int |
getLoggerLevel(java.lang.String channel)
Get the logger level for the specified channel |
boolean |
isEnabled(int level)
Check if the default channel with the specified level is enabled for logging. |
boolean |
isEnabled(java.lang.String channel,
int level)
Check if the channel with the specified level is enabled for logging. |
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. |
void |
setLoggerLevel(int level)
Set the logger level for the default channel |
void |
setLoggerLevel(java.lang.String channel,
int level)
Set the logger level for the specified channel |
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:
public static final java.lang.String DEFAULT_CHANNEL
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.public void setLoggerLevel(int level)
data
- The object to log.public void setLoggerLevel(java.lang.String channel, int level)
data
- The object to log.public int getLoggerLevel()
data
- The object to log.public int getLoggerLevel(java.lang.String channel)
data
- The object to log.public boolean isEnabled(java.lang.String channel, int level)
channel
- The channel specificationlevel
- The level specificationpublic boolean isEnabled(int level)
level
- The level specification
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |