Package org.apache.bookkeeper.slogger
Class ConsoleSlogger
- java.lang.Object
-
- org.apache.bookkeeper.slogger.AbstractSlogger
-
- org.apache.bookkeeper.slogger.ConsoleSlogger
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>
,Slogger
public class ConsoleSlogger extends AbstractSlogger
Simple slogger implementation which writes json to console.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.bookkeeper.slogger.AbstractSlogger
AbstractSlogger.CtxIterator, AbstractSlogger.Level
-
-
Constructor Summary
Constructors Constructor Description ConsoleSlogger()
ConsoleSlogger(java.lang.Class<?> clazz)
ConsoleSlogger(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
-
-