Module io.jstach.rainbowgum.slf4j
Package io.jstach.rainbowgum.slf4j.spi
Interface LoggerDecoratorService.DepthAwareLogger
- All Superinterfaces:
Logger
- Enclosing class:
LoggerDecoratorService
Because wrapping can change the depth of the logger in the callstack this interface
allows loggers to recreate themselves with the proper depth if they support it.
-
Field Summary
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
Method Summary
Methods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isEnabledForLevel, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, makeLoggingEventBuilder, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
Method Details
-
withDepth
Will recreate the logger with desired depth.- Parameters:
depth
- new depth.- Returns:
- logger with new depth.
-
withDepth
Will recreate the logger with desired depth if possible.- Parameters:
logger
- to check.depth
- new depth.- Returns:
- logger with new depth or the same logger if not possible.
-