Package com.github.loki4j.logback
Interface Loki4jEncoder
-
- All Superinterfaces:
ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle
- All Known Implementing Classes:
AbstractLoki4jEncoder,JsonEncoder,ProtobufEncoder
public interface Loki4jEncoder extends ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycleBasic interface for all Loki4j encoders.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringeventToMessage(ch.qos.logback.classic.spi.ILoggingEvent e)LogRecordStreameventToStream(ch.qos.logback.classic.spi.ILoggingEvent e)booleangetSortByTime()booleangetStaticLabels()PipelineConfig.WriterFactorygetWriterFactory()inttimestampToNanos(long timestampMs)
-
-
-
Method Detail
-
timestampToNanos
int timestampToNanos(long timestampMs)
-
eventToStream
LogRecordStream eventToStream(ch.qos.logback.classic.spi.ILoggingEvent e)
-
eventToMessage
java.lang.String eventToMessage(ch.qos.logback.classic.spi.ILoggingEvent e)
-
getWriterFactory
PipelineConfig.WriterFactory getWriterFactory()
-
getSortByTime
boolean getSortByTime()
-
getStaticLabels
boolean getStaticLabels()
-
-