Class LoggingEventKryoVOSerializerV5

java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<LoggingEventKryoVO>
ch.qos.logback.classic.kryo.LoggingEventKryoVOSerializerV5
All Implemented Interfaces:
FieldByteAccumulatorAware

public class LoggingEventKryoVOSerializerV5 extends com.esotericsoftware.kryo.kryo5.Serializer<LoggingEventKryoVO> implements FieldByteAccumulatorAware
Stream version 5 event serializer.

Logger name, level and thread name are followed by a 1-byte presence bitmap for message, arguments, markers, key-value pairs, MDC, throwable and callerData (usually absent). Message may be null (fluent .log() with no message). Present fields are written with writeObject (no per-field null byte). Timestamp and nanoseconds are one LongDeltaSerializer field: (epochSecond << 30) | nanos. Caller data follows throwable when present.

Long unique strings (message, string arguments, KVP string values and MDC values) share one MultiEventCompressedStringSerializer so there is a single deflate stream. Short repeating strings (thread name, MDC keys, KVP keys) use BasicStringSerializer and the id cache.

Logger names and stack-frame class names (caller data and throwable frames) use BasicStringSerializer. Each of the three has its own instance.

Selected when the stream header version is KryoClassicConstants.STREAM_VERSION_5.