org.refcodes.logger.LogPriorityAccessor
, org.refcodes.logger.MessageLogger<org.refcodes.logger.LogPriority>
, org.refcodes.logger.RuntimeLogger
, org.refcodes.mixin.NameAccessor
public class Slf4jRuntimeLoggerImpl extends Object implements org.refcodes.logger.RuntimeLogger
RuntimeLogger
to log using SLF4J.Constructor | Description |
---|---|
Slf4jRuntimeLoggerImpl() |
In case the
Slf4jRuntimeLoggerImpl (as created by the
Slf4jRuntimeLoggerFactorySingleton ) detects that SLF4J has bound
a SLF4J RuntimeLoggerAdapterImpl (see
refcodes-logger-ext-slf4j , the REFCODES.ORG SLF4J binding)
(i.e. the REFCODES.ORG SLF4J binding), it directly delegates its method
calls to the wrapped RuntimeLogger instead of marshaling a log
request through the SLF4J RuntimeLoggerAdapterImpl ; as
marshaling would mean consolidating of various detailed
LogPriority levels to a single SLF4J log level. |
Slf4jRuntimeLoggerImpl(org.slf4j.Logger aLogger) |
In case the
Slf4jRuntimeLoggerImpl (as created by the
Slf4jRuntimeLoggerFactorySingleton ) detects that SLF4J has bound
a SLF4J RuntimeLoggerAdapterImpl (see
refcodes-logger-ext-slf4j , the REFCODES.ORG SLF4J binding),
it directly delegates its method calls to the wrapped
RuntimeLogger instead of marshaling a log request through the
SLF4J RuntimeLoggerAdapterImpl as marshaling would mean
consolidating of various detailed LogPriority levels to a single
SLF4J log level. |
Modifier and Type | Method | Description |
---|---|---|
void |
alert(String aMessage) |
|
void |
alert(String aMessage,
Object... aArguments) |
|
void |
alert(String aMessage,
Throwable aThrowable) |
|
void |
alert(String aMessage,
Throwable aThrowable,
Object... aArguments) |
|
void |
critical(String aMessage) |
|
void |
critical(String aMessage,
Object... aArguments) |
|
void |
critical(String aMessage,
Throwable aThrowable) |
|
void |
critical(String aMessage,
Throwable aThrowable,
Object... aArguments) |
|
void |
debug(String aMessage) |
|
void |
debug(String aMessage,
Object... aArguments) |
|
void |
error(String aMessage) |
|
void |
error(String aMessage,
Object... aArguments) |
|
void |
error(String aMessage,
Throwable aThrowable) |
|
void |
error(String aMessage,
Throwable aThrowable,
Object... aArguments) |
|
org.refcodes.logger.LogPriority |
getLogPriority() |
|
String |
getName() |
|
void |
info(String aMessage) |
|
void |
info(String aMessage,
Object... aArguments) |
|
boolean |
isLog(org.refcodes.logger.LogPriority aPriority) |
|
boolean |
isLogAlert() |
|
boolean |
isLogCritical() |
|
boolean |
isLogDebug() |
|
boolean |
isLogError() |
|
boolean |
isLogInfo() |
|
boolean |
isLogNotice() |
|
boolean |
isLogPanic() |
|
boolean |
isLogTrace() |
|
boolean |
isLogWarn() |
|
void |
log(org.refcodes.logger.LogPriority aPriority,
String aMessage) |
|
void |
log(org.refcodes.logger.LogPriority aPriority,
String aMessage,
Object... aArguments) |
|
void |
log(org.refcodes.logger.LogPriority aPriority,
String aMessage,
Throwable aThrowable) |
|
void |
log(org.refcodes.logger.LogPriority aPriority,
String aMessage,
Throwable aThrowable,
Object... aArguments) |
|
void |
notice(String aMessage) |
|
void |
notice(String aMessage,
Object... aArguments) |
|
void |
panic(String aMessage) |
|
void |
panic(String aMessage,
Object... aArguments) |
|
void |
panic(String aMessage,
Throwable aThrowable) |
|
void |
panic(String aMessage,
Throwable aThrowable,
Object... aArguments) |
|
void |
trace(String aMessage) |
|
void |
trace(String aMessage,
Object... aArguments) |
|
void |
warn(String aMessage) |
|
void |
warn(String aMessage,
Object... aArguments) |
|
void |
warn(String aMessage,
Throwable aThrowable) |
|
void |
warn(String aMessage,
Throwable aThrowable,
Object... aArguments) |
public Slf4jRuntimeLoggerImpl()
Slf4jRuntimeLoggerImpl
(as created by the
Slf4jRuntimeLoggerFactorySingleton
) detects that SLF4J has bound
a SLF4J RuntimeLoggerAdapterImpl
(see
refcodes-logger-ext-slf4j
, the REFCODES.ORG SLF4J binding)
(i.e. the REFCODES.ORG SLF4J binding), it directly delegates its method
calls to the wrapped RuntimeLogger
instead of marshaling a log
request through the SLF4J RuntimeLoggerAdapterImpl
; as
marshaling would mean consolidating of various detailed
LogPriority
levels to a single SLF4J log level.public Slf4jRuntimeLoggerImpl(org.slf4j.Logger aLogger)
Slf4jRuntimeLoggerImpl
(as created by the
Slf4jRuntimeLoggerFactorySingleton
) detects that SLF4J has bound
a SLF4J RuntimeLoggerAdapterImpl
(see
refcodes-logger-ext-slf4j
, the REFCODES.ORG SLF4J binding),
it directly delegates its method calls to the wrapped
RuntimeLogger
instead of marshaling a log request through the
SLF4J RuntimeLoggerAdapterImpl
as marshaling would mean
consolidating of various detailed LogPriority
levels to a single
SLF4J log level.aLogger
- the logger to use SLF4J for logging.public void log(org.refcodes.logger.LogPriority aPriority, String aMessage)
log
in interface org.refcodes.logger.MessageLogger<org.refcodes.logger.LogPriority>
public void log(org.refcodes.logger.LogPriority aPriority, String aMessage, Object... aArguments)
log
in interface org.refcodes.logger.MessageLogger<org.refcodes.logger.LogPriority>
public String getName()
getName
in interface org.refcodes.mixin.NameAccessor
public org.refcodes.logger.LogPriority getLogPriority()
getLogPriority
in interface org.refcodes.logger.LogPriorityAccessor
public void log(org.refcodes.logger.LogPriority aPriority, String aMessage, Throwable aThrowable)
log
in interface org.refcodes.logger.RuntimeLogger
public void log(org.refcodes.logger.LogPriority aPriority, String aMessage, Throwable aThrowable, Object... aArguments)
log
in interface org.refcodes.logger.RuntimeLogger
public boolean isLog(org.refcodes.logger.LogPriority aPriority)
isLog
in interface org.refcodes.logger.RuntimeLogger
public void trace(String aMessage)
trace
in interface org.refcodes.logger.RuntimeLogger
public void trace(String aMessage, Object... aArguments)
trace
in interface org.refcodes.logger.RuntimeLogger
public boolean isLogTrace()
isLogTrace
in interface org.refcodes.logger.RuntimeLogger
public void debug(String aMessage)
debug
in interface org.refcodes.logger.RuntimeLogger
public void debug(String aMessage, Object... aArguments)
debug
in interface org.refcodes.logger.RuntimeLogger
public boolean isLogDebug()
isLogDebug
in interface org.refcodes.logger.RuntimeLogger
public void info(String aMessage)
info
in interface org.refcodes.logger.RuntimeLogger
public void info(String aMessage, Object... aArguments)
info
in interface org.refcodes.logger.RuntimeLogger
public boolean isLogInfo()
isLogInfo
in interface org.refcodes.logger.RuntimeLogger
public void notice(String aMessage)
notice
in interface org.refcodes.logger.RuntimeLogger
public void notice(String aMessage, Object... aArguments)
notice
in interface org.refcodes.logger.RuntimeLogger
public boolean isLogNotice()
isLogNotice
in interface org.refcodes.logger.RuntimeLogger
public void warn(String aMessage)
warn
in interface org.refcodes.logger.RuntimeLogger
public void warn(String aMessage, Object... aArguments)
warn
in interface org.refcodes.logger.RuntimeLogger
public void warn(String aMessage, Throwable aThrowable)
warn
in interface org.refcodes.logger.RuntimeLogger
public void warn(String aMessage, Throwable aThrowable, Object... aArguments)
warn
in interface org.refcodes.logger.RuntimeLogger
public boolean isLogWarn()
isLogWarn
in interface org.refcodes.logger.RuntimeLogger
public void error(String aMessage)
error
in interface org.refcodes.logger.RuntimeLogger
public void error(String aMessage, Object... aArguments)
error
in interface org.refcodes.logger.RuntimeLogger
public void error(String aMessage, Throwable aThrowable)
error
in interface org.refcodes.logger.RuntimeLogger
public void error(String aMessage, Throwable aThrowable, Object... aArguments)
error
in interface org.refcodes.logger.RuntimeLogger
public boolean isLogError()
isLogError
in interface org.refcodes.logger.RuntimeLogger
public void critical(String aMessage)
critical
in interface org.refcodes.logger.RuntimeLogger
public void critical(String aMessage, Object... aArguments)
critical
in interface org.refcodes.logger.RuntimeLogger
public void critical(String aMessage, Throwable aThrowable)
critical
in interface org.refcodes.logger.RuntimeLogger
public void critical(String aMessage, Throwable aThrowable, Object... aArguments)
critical
in interface org.refcodes.logger.RuntimeLogger
public boolean isLogCritical()
isLogCritical
in interface org.refcodes.logger.RuntimeLogger
public void alert(String aMessage)
alert
in interface org.refcodes.logger.RuntimeLogger
public void alert(String aMessage, Object... aArguments)
alert
in interface org.refcodes.logger.RuntimeLogger
public void alert(String aMessage, Throwable aThrowable)
alert
in interface org.refcodes.logger.RuntimeLogger
public void alert(String aMessage, Throwable aThrowable, Object... aArguments)
alert
in interface org.refcodes.logger.RuntimeLogger
public boolean isLogAlert()
isLogAlert
in interface org.refcodes.logger.RuntimeLogger
public void panic(String aMessage)
panic
in interface org.refcodes.logger.RuntimeLogger
public void panic(String aMessage, Object... aArguments)
panic
in interface org.refcodes.logger.RuntimeLogger
public void panic(String aMessage, Throwable aThrowable)
panic
in interface org.refcodes.logger.RuntimeLogger
public void panic(String aMessage, Throwable aThrowable, Object... aArguments)
panic
in interface org.refcodes.logger.RuntimeLogger
public boolean isLogPanic()
isLogPanic
in interface org.refcodes.logger.RuntimeLogger
Copyright © 2018. All rights reserved.