Search in sources :

Example 6 with StackTraceElementProxy

use of ch.qos.logback.classic.spi.StackTraceElementProxy in project cdap by caskdata.

the class StackTraceElementProxySerializer method decode.

static StackTraceElementProxy decode(GenericRecord datum) {
    StackTraceElement ste = StackTraceElementSerializer.decode((GenericRecord) datum.get("stackTraceElement"));
    ClassPackagingData cpd = ClassPackagingDataSerializer.decode((GenericRecord) datum.get("classPackagingData"));
    StackTraceElementProxy stackTraceElementProxy = new StackTraceElementProxy(ste);
    if (cpd != null) {
        stackTraceElementProxy.setClassPackagingData(cpd);
    }
    return stackTraceElementProxy;
}
Also used : StackTraceElementProxy(ch.qos.logback.classic.spi.StackTraceElementProxy) ClassPackagingData(ch.qos.logback.classic.spi.ClassPackagingData)

Aggregations

StackTraceElementProxy (ch.qos.logback.classic.spi.StackTraceElementProxy)6 GenericRecord (org.apache.avro.generic.GenericRecord)3 IThrowableProxy (ch.qos.logback.classic.spi.IThrowableProxy)2 Level (ch.qos.logback.classic.Level)1 ClassPackagingData (ch.qos.logback.classic.spi.ClassPackagingData)1 ILoggingEvent (ch.qos.logback.classic.spi.ILoggingEvent)1 Schema (org.apache.avro.Schema)1 GenericArray (org.apache.avro.generic.GenericArray)1 OpsContext (org.platformlayer.ops.OpsContext)1