public abstract class AbstractQualifiedLogger extends Object implements QualifiedLogger, Logger
ROOT_LOGGER_NAME
Constructor and Description |
---|
AbstractQualifiedLogger() |
Modifier and Type | Method and Description |
---|---|
static String |
assembleMessageId(MessageID messageId) |
void |
delegate(Level level,
MessageID msgId,
Throwable t,
Object[] args) |
protected boolean |
doResolveMessages() |
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".
|
protected String |
formatMessageArguments(String msg,
Object... args) |
protected String |
getLogMessageForEvent(QualifiedLogEvent event)
generates (or retrieves) a log message for a particular event.
|
boolean |
isErrorEnabled()
Is the logger instance enabled for the ERROR level?
|
boolean |
isFatalEnabled()
Is the logger instance enabled for the FATAL level?
|
boolean |
isWarnEnabled()
Is the logger instance enabled for the WARN level?
|
void |
trace(String msg,
Object... args)
Log a message at the TRACE level processing the passed arguments.
|
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".
|
public void delegate(Level level, MessageID msgId, Throwable t, Object[] args)
delegate
in interface QualifiedLogger
protected boolean doResolveMessages()
public void error(MessageID msgId)
QualifiedLogger
error
in interface QualifiedLogger
msgId
- the messagepublic void error(MessageID msgId, Object... args)
QualifiedLogger
error
in interface QualifiedLogger
msgId
- the messageargs
- the argumentspublic void error(MessageID msgId, Throwable t)
QualifiedLogger
MessageFormat
.error
in interface QualifiedLogger
msgId
- the messaget
- the Throwable
related to the event.public void error(MessageID msgId, Throwable t, Object... args)
QualifiedLogger
MessageFormat
.error
in interface QualifiedLogger
msgId
- the messaget
- the Throwable
related to the event.args
- the argumentspublic void fatal(MessageID msgId)
QualifiedLogger
fatal
in interface QualifiedLogger
msgId
- the messagepublic void fatal(MessageID msgId, Object... args)
QualifiedLogger
fatal
in interface QualifiedLogger
msgId
- the messageargs
- the argumentspublic void fatal(MessageID msgId, Throwable t)
QualifiedLogger
MessageFormat
.fatal
in interface QualifiedLogger
msgId
- the messaget
- the Throwable
related to the event.public void fatal(MessageID msgId, Throwable t, Object... args)
QualifiedLogger
MessageFormat
.fatal
in interface QualifiedLogger
msgId
- the messaget
- the Throwable
related to the event.args
- the argumentsprotected String getLogMessageForEvent(QualifiedLogEvent event)
event
- NullPointerException
- if event is nullpublic boolean isErrorEnabled()
Logger
isErrorEnabled
in interface Logger
public boolean isFatalEnabled()
Logger
isFatalEnabled
in interface Logger
public boolean isWarnEnabled()
Logger
isWarnEnabled
in interface Logger
public void trace(String msg, Object... args)
Logger
public void warn(MessageID msgId)
QualifiedLogger
warn
in interface QualifiedLogger
msgId
- the messagepublic void warn(MessageID msgId, Object... args)
QualifiedLogger
warn
in interface QualifiedLogger
msgId
- the messageargs
- the argumentspublic void warn(MessageID msgId, Throwable t)
QualifiedLogger
MessageFormat
.warn
in interface QualifiedLogger
msgId
- the messaget
- the Throwable
related to the event.public void warn(MessageID msgId, Throwable t, Object... args)
QualifiedLogger
MessageFormat
.warn
in interface QualifiedLogger
msgId
- the messaget
- the Throwable
related to the event.args
- the argumentsCopyright © 2024 levigo holding gmbh. All rights reserved.