|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QualifiedLogger
QualifiedLoggers are loggers where all messages above and including a severity of "warning" are qualified with unique message IDs. This enables consumers of messages to easily and unambiguously recognize certain types of messages without resorting to the analysis of - possibly internationalized - message texts.
Method Summary | |
---|---|
void |
debug(String msg)
Log the given message at level "debug". |
void |
debug(String msg,
Object... args)
Log the given message at level "debug". |
void |
debug(String msg,
Throwable t)
Log the given message at level "debug". |
void |
debug(String msg,
Throwable t,
Object... args)
Log the given message at level "debug". |
void |
error(MessageID msgId)
Log the given message at level "error". |
void |
error(MessageID msgId,
Object... args)
Log the given message at level "error". |
void |
error(MessageID msgId,
Throwable t)
Log the given message at level "error". |
void |
error(MessageID msgId,
Throwable t,
Object... args)
Log the given message at level "error". |
void |
fatal(MessageID msgId)
Log the given message at level "fatal". |
void |
fatal(MessageID msgId,
Object... args)
Log the given message at level "fatal". |
void |
fatal(MessageID msgId,
Throwable t)
Log the given message at level "fatal". |
void |
fatal(MessageID msgId,
Throwable t,
Object... args)
Log the given message at level "fatal". |
String |
getName()
Return the name of this logger - most likely based on the name of the emitting class. |
void |
info(String msg)
Log the given message at level "info". |
void |
info(String msg,
Object... args)
Log the given message at level "info". |
void |
info(String msg,
Throwable t)
Log the given message at level "info". |
void |
info(String msg,
Throwable t,
Object... args)
Log the given message at level "debug". |
boolean |
isDebugEnabled()
Return whether the "debug" (or higher) level is enabled |
boolean |
isErrorEnabled()
Return whether the "error" (or higher) level is enabled |
boolean |
isFatalEnabled()
Return whether the "fatal" level is enabled |
boolean |
isInfoEnabled()
Return whether the "info" (or higher) level is enabled |
boolean |
isTraceEnabled()
Return whether the "trace" (or higher) level is enabled |
boolean |
isWarnEnabled()
Return whether the "warning" (or higher) level is enabled |
void |
trace(String msg)
Log the given message at level "trace". |
void |
trace(String msg,
Object... args)
Log the given message at level "trace". |
void |
trace(String msg,
Throwable t)
Log the given message at level "trace". |
void |
trace(String msg,
Throwable t,
Object... args)
Log the given message at level "trace". |
void |
warn(MessageID msgId)
Log the given message at level "warning". |
void |
warn(MessageID msgId,
Object... args)
Log the given message at level "warning". |
void |
warn(MessageID msgId,
Throwable t)
Log the given message at level "warning". |
void |
warn(MessageID msgId,
Throwable t,
Object... args)
Log the given message at level "warning". |
Method Detail |
---|
String getName()
boolean isDebugEnabled()
true
if enabledvoid debug(String msg)
msg
- the messagevoid debug(String msg, Object... args)
MessageFormat
.
msg
- the messageargs
- the argumentsvoid debug(String msg, Throwable t)
msg
- the messaget
- the Throwable
related to the event.void debug(String msg, Throwable t, Object... args)
MessageFormat
.
msg
- the messaget
- the Throwable
related to the event.args
- the argumentsboolean isInfoEnabled()
true
if enabledvoid info(String msg)
msg
- the messagevoid info(String msg, Object... args)
MessageFormat
.
msg
- the messageargs
- the argumentsvoid info(String msg, Throwable t)
msg
- the messaget
- the Throwable
related to the event.void info(String msg, Throwable t, Object... args)
MessageFormat
.
msg
- the messaget
- the Throwable
related to the event.args
- the argumentsboolean isTraceEnabled()
true
if enabledvoid trace(String msg)
msg
- the messagevoid trace(String msg, Object... args)
MessageFormat
.
msg
- the messageargs
- the argumentsvoid trace(String msg, Throwable t)
msg
- the messaget
- the Throwable
related to the event.void trace(String msg, Throwable t, Object... args)
MessageFormat
.
msg
- the messaget
- the Throwable
related to the event.args
- the argumentsboolean isWarnEnabled()
true
if enabledvoid warn(MessageID msgId)
msgId
- the messagevoid warn(MessageID msgId, Throwable t)
MessageFormat
.
msgId
- the messaget
- the Throwable
related to the event.void warn(MessageID msgId, Object... args)
msgId
- the messageargs
- the argumentsvoid warn(MessageID msgId, Throwable t, Object... args)
MessageFormat
.
msgId
- the messaget
- the Throwable
related to the event.args
- the argumentsboolean isErrorEnabled()
true
if enabledvoid error(MessageID msgId)
msgId
- the messagevoid error(MessageID msgId, Throwable t)
MessageFormat
.
msgId
- the messaget
- the Throwable
related to the event.void error(MessageID msgId, Object... args)
msgId
- the messageargs
- the argumentsvoid error(MessageID msgId, Throwable t, Object... args)
MessageFormat
.
msgId
- the messaget
- the Throwable
related to the event.args
- the argumentsboolean isFatalEnabled()
true
if enabledvoid fatal(MessageID msgId)
msgId
- the messagevoid fatal(MessageID msgId, Throwable t)
MessageFormat
.
msgId
- the messaget
- the Throwable
related to the event.void fatal(MessageID msgId, Object... args)
msgId
- the messageargs
- the argumentsvoid fatal(MessageID msgId, Throwable t, Object... args)
MessageFormat
.
msgId
- the messaget
- the Throwable
related to the event.args
- the arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |