|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogNoi18n
Non-internationalised logging interface abstracting the various logging APIs
supported by Arjuna CLF.
Non-i18n messages should generally be debug (trace) level or raw exceptions. All
textual messages at higher levels should go through the i18n logger instead.
See Logi18n
for an internationalised version and for more
information.
The five logging levels used by Log
are (in order):
Performance is often a logging concern. By examining the appropriate property, a component can avoid expensive operations (producing information to be logged).
For example,
if (log.isDebugEnabled()) {
... do something expensive ...
log.debug(theResult);
}
Configuration of the underlying logging system will generally be done external to the Logging APIs, through whatever mechanism is supported by that system.
Method Summary | |
---|---|
void |
debug(java.lang.String message)
Log a message with the DEBUG Level Note: this method does not use i18n. |
void |
error(java.lang.Throwable message)
Log a message with ERROR Level |
void |
fatal(java.lang.Throwable message)
Log a message with FATAL Level |
void |
info(java.lang.Throwable message)
Deprecated. exceptions at info level don't make a lot sense. |
boolean |
isDebugEnabled()
Determine if this logger is enabled for DEBUG messages. |
boolean |
isErrorEnabled()
Determine if this logger is enabled for ERROR messages. |
boolean |
isFatalEnabled()
Determine if this logger is enabled for FATAL messages. |
boolean |
isInfoEnabled()
Determine if this logger is enabled for INFO messages. |
boolean |
isWarnEnabled()
Determine if this logger is enabled for WARN messages. |
void |
warn(java.lang.Throwable message)
Log a message with WARN Level |
Method Detail |
---|
boolean isDebugEnabled()
boolean isInfoEnabled()
boolean isWarnEnabled()
boolean isErrorEnabled()
boolean isFatalEnabled()
void info(java.lang.Throwable message)
message
- the message to logvoid warn(java.lang.Throwable message)
message
- the message to logvoid error(java.lang.Throwable message)
message
- the message to logvoid fatal(java.lang.Throwable message)
message
- the message to logvoid debug(java.lang.String message)
message
- The message to log.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |