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.LifeCycle
    Basic interface for all Loki4j encoders
    • 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)
      • getContentType

        java.lang.String getContentType()
      • getLogRecordComparator

        java.util.Optional<java.util.Comparator<LogRecord>> getLogRecordComparator()