de.huxhorn.lilith.data.logging.protobuf
Class LoggingEventProtobufEncoder

java.lang.Object
  extended by de.huxhorn.lilith.data.logging.protobuf.LoggingEventProtobufEncoder
All Implemented Interfaces:
de.huxhorn.sulky.codec.Encoder<de.huxhorn.lilith.data.logging.LoggingEvent>

public class LoggingEventProtobufEncoder
extends java.lang.Object
implements de.huxhorn.sulky.codec.Encoder<de.huxhorn.lilith.data.logging.LoggingEvent>


Constructor Summary
LoggingEventProtobufEncoder(boolean compressing)
           
 
Method Summary
static LoggingProto.StackTraceElement convert(de.huxhorn.lilith.data.logging.ExtendedStackTraceElement ste)
           
static LoggingProto.LoggerContext convert(de.huxhorn.lilith.data.eventsource.LoggerContext context)
           
static LoggingProto.LoggingEvent convert(de.huxhorn.lilith.data.logging.LoggingEvent event)
           
static LoggingProto.StringMap convert(java.util.Map<java.lang.String,java.lang.String> map)
           
static LoggingProto.Marker convert(de.huxhorn.lilith.data.logging.Marker marker)
           
static LoggingProto.Message convert(de.huxhorn.lilith.data.logging.Message message)
           
static LoggingProto.ThreadInfo convert(de.huxhorn.lilith.data.logging.ThreadInfo threadInfo)
           
static LoggingProto.Throwable convert(de.huxhorn.lilith.data.logging.ThrowableInfo throwableInfo)
           
 byte[] encode(de.huxhorn.lilith.data.logging.LoggingEvent event)
           
 boolean isCompressing()
           
 void setCompressing(boolean compressing)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingEventProtobufEncoder

public LoggingEventProtobufEncoder(boolean compressing)
Method Detail

isCompressing

public boolean isCompressing()

setCompressing

public void setCompressing(boolean compressing)

encode

public byte[] encode(de.huxhorn.lilith.data.logging.LoggingEvent event)
Specified by:
encode in interface de.huxhorn.sulky.codec.Encoder<de.huxhorn.lilith.data.logging.LoggingEvent>

convert

public static LoggingProto.Marker convert(de.huxhorn.lilith.data.logging.Marker marker)

convert

public static LoggingProto.StackTraceElement convert(de.huxhorn.lilith.data.logging.ExtendedStackTraceElement ste)

convert

public static LoggingProto.Throwable convert(de.huxhorn.lilith.data.logging.ThrowableInfo throwableInfo)

convert

public static LoggingProto.Message convert(de.huxhorn.lilith.data.logging.Message message)

convert

public static LoggingProto.ThreadInfo convert(de.huxhorn.lilith.data.logging.ThreadInfo threadInfo)

convert

public static LoggingProto.LoggerContext convert(de.huxhorn.lilith.data.eventsource.LoggerContext context)

convert

public static LoggingProto.StringMap convert(java.util.Map<java.lang.String,java.lang.String> map)

convert

public static LoggingProto.LoggingEvent convert(de.huxhorn.lilith.data.logging.LoggingEvent event)