Class Slf4jSlogger
- java.lang.Object
-
- org.apache.bookkeeper.slogger.AbstractSlogger
-
- org.apache.bookkeeper.slogger.slf4j.Slf4jSlogger
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>
,Slogger
public class Slf4jSlogger extends AbstractSlogger
Slf4j implementation of slogger.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.bookkeeper.slogger.AbstractSlogger
AbstractSlogger.Level
-
-
Constructor Summary
Constructors Constructor Description Slf4jSlogger()
Slf4jSlogger(java.lang.Class<?> clazz)
Slf4jSlogger(java.lang.Class<?> clazz, java.lang.Iterable<java.lang.Object> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doLog(AbstractSlogger.Level level, java.lang.Enum<?> event, java.lang.String message, java.lang.Throwable throwable, java.util.List<java.lang.Object> keyValues)
protected Slogger
newSlogger(java.util.Optional<java.lang.Class<?>> clazz, java.lang.Iterable<java.lang.Object> parent)
-
Methods inherited from class org.apache.bookkeeper.slogger.AbstractSlogger
clearCurrentCtx, ctx, ctx, error, error, error, error, flattenKeyValues, flattenKeyValues, info, info, info, info, iterator, kv, warn, warn, warn, warn
-
-
-
-
Method Detail
-
newSlogger
protected Slogger newSlogger(java.util.Optional<java.lang.Class<?>> clazz, java.lang.Iterable<java.lang.Object> parent)
- Specified by:
newSlogger
in classAbstractSlogger
-
doLog
protected void doLog(AbstractSlogger.Level level, java.lang.Enum<?> event, java.lang.String message, java.lang.Throwable throwable, java.util.List<java.lang.Object> keyValues)
- Specified by:
doLog
in classAbstractSlogger
-
-