de.huxhorn.lilith.data.logging.protobuf
Class LoggingEventProtobufEncoder
java.lang.Object
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingEventProtobufEncoder
public LoggingEventProtobufEncoder(boolean compressing)
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)