public class SpringRuntimeLoggerSingleton
extends org.refcodes.logger.RuntimeLoggerImpl
RuntimeLoggerSingleton
. The
SpringRuntimeLoggerSingleton
provides a RuntimeLogger
singleton from the class specified in the bean
RUNTIME_LOGGER_BEAN
declared by the
context file RUNTIME_LOGGER_CONTEXT
.Modifier and Type | Field and Description |
---|---|
static String |
RUNTIME_LOGGER_BEAN
The default Spring bean name for a refcodes
RuntimeLogger bean. |
static String |
RUNTIME_LOGGER_CONTEXT
The filename of the file on the classpath containing the spring context
for the runtime logger.
|
Modifier | Constructor and Description |
---|---|
protected |
SpringRuntimeLoggerSingleton(org.refcodes.logger.Logger<Object> aLogger,
org.refcodes.logger.LogPriority aPriority)
Instantiates a new spring runtime logger singleton.
|
Modifier and Type | Method and 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) |
static org.refcodes.logger.RuntimeLogger |
getInstance()
Returns the singleton's instance as fabricated by this
SpringRuntimeLoggerSingleton . |
static org.refcodes.logger.RuntimeLogger |
getInstance(String aLoggerBeanId)
Returns the singleton's instance as fabricated by this
SpringRuntimeLoggerSingleton . |
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 aMarker,
String aMessage) |
void |
log(org.refcodes.logger.LogPriority aMarker,
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 static String RUNTIME_LOGGER_BEAN
RuntimeLogger
bean.public static final String RUNTIME_LOGGER_CONTEXT
protected SpringRuntimeLoggerSingleton(org.refcodes.logger.Logger<Object> aLogger, org.refcodes.logger.LogPriority aPriority)
aLogger
- the a loggeraPriority
- the a prioritypublic static org.refcodes.logger.RuntimeLogger getInstance() throws org.refcodes.logger.LoggerInstantiationRuntimeException
SpringRuntimeLoggerSingleton
.RuntimeLogger
singleton's instance.org.refcodes.logger.LoggerInstantiationRuntimeException
- Thrown in case instantiating
a Logger
(RuntimeLogger
) failedpublic static org.refcodes.logger.RuntimeLogger getInstance(String aLoggerBeanId) throws org.refcodes.logger.LoggerInstantiationRuntimeException
SpringRuntimeLoggerSingleton
.aLoggerBeanId
- The logger's bean ID as defined in the according
RUNTIME_LOGGER_CONTEXT
Spring context file.RuntimeLogger
singleton's instance.org.refcodes.logger.LoggerInstantiationRuntimeException
- Thrown in case instantiating
a Logger
(RuntimeLogger
) failedpublic String getName()
getName
in interface org.refcodes.mixin.NameAccessor
getName
in class org.refcodes.logger.RuntimeLoggerImpl
public org.refcodes.logger.LogPriority getLogPriority()
getLogPriority
in interface org.refcodes.logger.LogPriorityAccessor
getLogPriority
in class org.refcodes.logger.RuntimeLoggerImpl
public void log(org.refcodes.logger.LogPriority aMarker, String aMessage)
log
in interface org.refcodes.logger.MessageLogger<org.refcodes.logger.LogPriority>
log
in class org.refcodes.logger.RuntimeLoggerImpl
public void log(org.refcodes.logger.LogPriority aPriority, String aMessage, Throwable aThrowable)
log
in interface org.refcodes.logger.RuntimeLogger
log
in class org.refcodes.logger.RuntimeLoggerImpl
public void log(org.refcodes.logger.LogPriority aMarker, String aMessage, Object... aArguments)
log
in interface org.refcodes.logger.MessageLogger<org.refcodes.logger.LogPriority>
log
in class org.refcodes.logger.RuntimeLoggerImpl
public void log(org.refcodes.logger.LogPriority aPriority, String aMessage, Throwable aThrowable, Object... aArguments)
log
in interface org.refcodes.logger.RuntimeLogger
log
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLog(org.refcodes.logger.LogPriority aPriority)
isLog
in interface org.refcodes.logger.RuntimeLogger
isLog
in class org.refcodes.logger.RuntimeLoggerImpl
public void trace(String aMessage)
trace
in interface org.refcodes.logger.RuntimeLogger
trace
in class org.refcodes.logger.RuntimeLoggerImpl
public void trace(String aMessage, Object... aArguments)
trace
in interface org.refcodes.logger.RuntimeLogger
trace
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLogTrace()
isLogTrace
in interface org.refcodes.logger.RuntimeLogger
isLogTrace
in class org.refcodes.logger.RuntimeLoggerImpl
public void debug(String aMessage)
debug
in interface org.refcodes.logger.RuntimeLogger
debug
in class org.refcodes.logger.RuntimeLoggerImpl
public void debug(String aMessage, Object... aArguments)
debug
in interface org.refcodes.logger.RuntimeLogger
debug
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLogDebug()
isLogDebug
in interface org.refcodes.logger.RuntimeLogger
isLogDebug
in class org.refcodes.logger.RuntimeLoggerImpl
public void info(String aMessage)
info
in interface org.refcodes.logger.RuntimeLogger
info
in class org.refcodes.logger.RuntimeLoggerImpl
public void info(String aMessage, Object... aArguments)
info
in interface org.refcodes.logger.RuntimeLogger
info
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLogInfo()
isLogInfo
in interface org.refcodes.logger.RuntimeLogger
isLogInfo
in class org.refcodes.logger.RuntimeLoggerImpl
public void notice(String aMessage)
notice
in interface org.refcodes.logger.RuntimeLogger
notice
in class org.refcodes.logger.RuntimeLoggerImpl
public void notice(String aMessage, Object... aArguments)
notice
in interface org.refcodes.logger.RuntimeLogger
notice
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLogNotice()
isLogNotice
in interface org.refcodes.logger.RuntimeLogger
isLogNotice
in class org.refcodes.logger.RuntimeLoggerImpl
public void warn(String aMessage)
warn
in interface org.refcodes.logger.RuntimeLogger
warn
in class org.refcodes.logger.RuntimeLoggerImpl
public void warn(String aMessage, Object... aArguments)
warn
in interface org.refcodes.logger.RuntimeLogger
warn
in class org.refcodes.logger.RuntimeLoggerImpl
public void warn(String aMessage, Throwable aThrowable)
warn
in interface org.refcodes.logger.RuntimeLogger
warn
in class org.refcodes.logger.RuntimeLoggerImpl
public void warn(String aMessage, Throwable aThrowable, Object... aArguments)
warn
in interface org.refcodes.logger.RuntimeLogger
warn
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLogWarn()
isLogWarn
in interface org.refcodes.logger.RuntimeLogger
isLogWarn
in class org.refcodes.logger.RuntimeLoggerImpl
public void error(String aMessage)
error
in interface org.refcodes.logger.RuntimeLogger
error
in class org.refcodes.logger.RuntimeLoggerImpl
public void error(String aMessage, Object... aArguments)
error
in interface org.refcodes.logger.RuntimeLogger
error
in class org.refcodes.logger.RuntimeLoggerImpl
public void error(String aMessage, Throwable aThrowable)
error
in interface org.refcodes.logger.RuntimeLogger
error
in class org.refcodes.logger.RuntimeLoggerImpl
public void error(String aMessage, Throwable aThrowable, Object... aArguments)
error
in interface org.refcodes.logger.RuntimeLogger
error
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLogError()
isLogError
in interface org.refcodes.logger.RuntimeLogger
isLogError
in class org.refcodes.logger.RuntimeLoggerImpl
public void critical(String aMessage)
critical
in interface org.refcodes.logger.RuntimeLogger
critical
in class org.refcodes.logger.RuntimeLoggerImpl
public void critical(String aMessage, Object... aArguments)
critical
in interface org.refcodes.logger.RuntimeLogger
critical
in class org.refcodes.logger.RuntimeLoggerImpl
public void critical(String aMessage, Throwable aThrowable)
critical
in interface org.refcodes.logger.RuntimeLogger
critical
in class org.refcodes.logger.RuntimeLoggerImpl
public void critical(String aMessage, Throwable aThrowable, Object... aArguments)
critical
in interface org.refcodes.logger.RuntimeLogger
critical
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLogCritical()
isLogCritical
in interface org.refcodes.logger.RuntimeLogger
isLogCritical
in class org.refcodes.logger.RuntimeLoggerImpl
public void alert(String aMessage)
alert
in interface org.refcodes.logger.RuntimeLogger
alert
in class org.refcodes.logger.RuntimeLoggerImpl
public void alert(String aMessage, Object... aArguments)
alert
in interface org.refcodes.logger.RuntimeLogger
alert
in class org.refcodes.logger.RuntimeLoggerImpl
public void alert(String aMessage, Throwable aThrowable)
alert
in interface org.refcodes.logger.RuntimeLogger
alert
in class org.refcodes.logger.RuntimeLoggerImpl
public void alert(String aMessage, Throwable aThrowable, Object... aArguments)
alert
in interface org.refcodes.logger.RuntimeLogger
alert
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLogAlert()
isLogAlert
in interface org.refcodes.logger.RuntimeLogger
isLogAlert
in class org.refcodes.logger.RuntimeLoggerImpl
public void panic(String aMessage)
panic
in interface org.refcodes.logger.RuntimeLogger
panic
in class org.refcodes.logger.RuntimeLoggerImpl
public void panic(String aMessage, Object... aArguments)
panic
in interface org.refcodes.logger.RuntimeLogger
panic
in class org.refcodes.logger.RuntimeLoggerImpl
public void panic(String aMessage, Throwable aThrowable)
panic
in interface org.refcodes.logger.RuntimeLogger
panic
in class org.refcodes.logger.RuntimeLoggerImpl
public void panic(String aMessage, Throwable aThrowable, Object... aArguments)
panic
in interface org.refcodes.logger.RuntimeLogger
panic
in class org.refcodes.logger.RuntimeLoggerImpl
public boolean isLogPanic()
isLogPanic
in interface org.refcodes.logger.RuntimeLogger
isLogPanic
in class org.refcodes.logger.RuntimeLoggerImpl
Copyright © 2017. All rights reserved.