Class Slf4jLogger
java.lang.Object
de.oktoflow.platform.support.logging.slf4j.simple.Slf4jLogger
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.logging.Logger
Delegating SLF4j logger.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.logging.Logger
de.iip_ecosphere.platform.support.logging.Logger.Emitter -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate de.iip_ecosphere.platform.support.logging.LogLevelprivate org.slf4j.LoggerFields inherited from interface de.iip_ecosphere.platform.support.logging.Logger
ROOT_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidde.iip_ecosphere.platform.support.logging.LogLevelgetLevel()getName()private voidExecutefuncif the given level is enabled.voidvoidvoidvoidvoidbooleansetLevel(de.iip_ecosphere.platform.support.logging.LogLevel level) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.logging.Logger
log, log, log, log, log, setEmitter
-
Field Details
-
logger
private org.slf4j.Logger logger -
level
private de.iip_ecosphere.platform.support.logging.LogLevel level
-
-
Constructor Details
-
Slf4jLogger
public Slf4jLogger(org.slf4j.Logger logger) Creates a wrapping logger.- Parameters:
logger- the original logger
-
-
Method Details
-
setLevel
public boolean setLevel(de.iip_ecosphere.platform.support.logging.LogLevel level) - Specified by:
setLevelin interfacede.iip_ecosphere.platform.support.logging.Logger
-
getLevel
public de.iip_ecosphere.platform.support.logging.LogLevel getLevel()- Specified by:
getLevelin interfacede.iip_ecosphere.platform.support.logging.Logger
-
getName
- Specified by:
getNamein interfacede.iip_ecosphere.platform.support.logging.Logger
-
ifEnabled
Executefuncif the given level is enabled.- Parameters:
level- the target logging levelfunc- the function to execute
-
trace
- Specified by:
tracein interfacede.iip_ecosphere.platform.support.logging.Logger
-
trace
- Specified by:
tracein interfacede.iip_ecosphere.platform.support.logging.Logger
-
trace
- Specified by:
tracein interfacede.iip_ecosphere.platform.support.logging.Logger
-
trace
- Specified by:
tracein interfacede.iip_ecosphere.platform.support.logging.Logger
-
trace
- Specified by:
tracein interfacede.iip_ecosphere.platform.support.logging.Logger
-
debug
- Specified by:
debugin interfacede.iip_ecosphere.platform.support.logging.Logger
-
debug
- Specified by:
debugin interfacede.iip_ecosphere.platform.support.logging.Logger
-
debug
- Specified by:
debugin interfacede.iip_ecosphere.platform.support.logging.Logger
-
debug
- Specified by:
debugin interfacede.iip_ecosphere.platform.support.logging.Logger
-
debug
- Specified by:
debugin interfacede.iip_ecosphere.platform.support.logging.Logger
-
info
- Specified by:
infoin interfacede.iip_ecosphere.platform.support.logging.Logger
-
info
- Specified by:
infoin interfacede.iip_ecosphere.platform.support.logging.Logger
-
info
- Specified by:
infoin interfacede.iip_ecosphere.platform.support.logging.Logger
-
info
- Specified by:
infoin interfacede.iip_ecosphere.platform.support.logging.Logger
-
info
- Specified by:
infoin interfacede.iip_ecosphere.platform.support.logging.Logger
-
warn
- Specified by:
warnin interfacede.iip_ecosphere.platform.support.logging.Logger
-
warn
- Specified by:
warnin interfacede.iip_ecosphere.platform.support.logging.Logger
-
warn
- Specified by:
warnin interfacede.iip_ecosphere.platform.support.logging.Logger
-
warn
- Specified by:
warnin interfacede.iip_ecosphere.platform.support.logging.Logger
-
warn
- Specified by:
warnin interfacede.iip_ecosphere.platform.support.logging.Logger
-
error
- Specified by:
errorin interfacede.iip_ecosphere.platform.support.logging.Logger
-
error
- Specified by:
errorin interfacede.iip_ecosphere.platform.support.logging.Logger
-
error
- Specified by:
errorin interfacede.iip_ecosphere.platform.support.logging.Logger
-
error
- Specified by:
errorin interfacede.iip_ecosphere.platform.support.logging.Logger
-
error
- Specified by:
errorin interfacede.iip_ecosphere.platform.support.logging.Logger
-