public abstract class LoggingServiceImpl extends ServiceImp
Modifier and Type | Class and Description |
---|---|
static class |
LoggingServiceImpl.LoggingLevel |
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
LoggingServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
java.lang.String |
getLogCategory() |
protected static LoggingServiceImpl.LoggingLevel |
getLogger(LoggingServiceImpl.LoggingLevel level) |
LoggingServiceImpl.LoggingLevel |
getLogLevel() |
protected void |
initService() |
void |
prepare()
Prepare for initialisation.
|
void |
setLogCategory(java.lang.String logCategory) |
void |
setLogLevel(LoggingServiceImpl.LoggingLevel level)
Set the log level for logging.
|
protected org.slf4j.Logger |
slf4jLogger() |
<T extends LoggingServiceImpl> |
withLogCategory(java.lang.String logCategory) |
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
protected static LoggingServiceImpl.LoggingLevel getLogger(LoggingServiceImpl.LoggingLevel level)
protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
protected void closeService()
closeService
in class ServiceImp
public void prepare() throws CoreException
ComponentLifecycleExtension
CoreException
public LoggingServiceImpl.LoggingLevel getLogLevel()
public void setLogLevel(LoggingServiceImpl.LoggingLevel level)
level
- the log level, default is DEBUG but can be any one of ERROR, WARN, INFO, DEBUG, TRACELoggingServiceImpl.LoggingLevel
public java.lang.String getLogCategory()
public void setLogCategory(java.lang.String logCategory)
public <T extends LoggingServiceImpl> T withLogCategory(java.lang.String logCategory)
protected org.slf4j.Logger slf4jLogger()