Package com.github.loki4j.logback
Class ProtobufEncoder
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- com.github.loki4j.logback.AbstractLoki4jEncoder
-
- com.github.loki4j.logback.ProtobufEncoder
-
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle,Loki4jEncoder
public class ProtobufEncoder extends AbstractLoki4jEncoder
Encoder that converts log batches into Protobuf format specified by Loki API
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.loki4j.logback.AbstractLoki4jEncoder
AbstractLoki4jEncoder.LabelCfg, AbstractLoki4jEncoder.MessageCfg
-
-
Field Summary
-
Fields inherited from class com.github.loki4j.logback.AbstractLoki4jEncoder
charset
-
-
Constructor Summary
Constructors Constructor Description ProtobufEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PipelineConfig.WriterFactorygetWriterFactory()-
Methods inherited from class com.github.loki4j.logback.AbstractLoki4jEncoder
eventToMessage, eventToStream, getSortByTime, getStaticLabels, isStarted, setLabel, setMessage, setSortByTime, setStaticLabels, start, stop, timestampToNanos
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Method Detail
-
getWriterFactory
public PipelineConfig.WriterFactory getWriterFactory()
-
-