JsonLayout when configured with properties="true". Deprecated since 2.9.@Deprecated @Plugin(name="SerializedLayout", category="Core", elementType="layout", printObject=true) public final class SerializedLayout extends AbstractLayout<LogEvent>
LogEvent in its Java serialized form.AbstractLayout.Builder<B extends AbstractLayout.Builder<B>>configuration, eventCount, footer, header, LOGGERELEMENT_TYPE| Modifier and Type | Method and Description |
|---|---|
static SerializedLayout |
createLayout()
Deprecated.
|
String |
getContentType()
Deprecated.
SerializedLayout returns a binary stream.
|
byte[] |
getHeader()
Deprecated.
Returns the header, if one is available.
|
byte[] |
toByteArray(LogEvent event)
Deprecated.
Formats a
LogEvent as a serialized byte array of the LogEvent object. |
LogEvent |
toSerializable(LogEvent event)
Deprecated.
Returns the LogEvent.
|
encode, getConfiguration, getContentFormat, getFooter, markEventpublic byte[] toByteArray(LogEvent event)
LogEvent as a serialized byte array of the LogEvent object.event - The LogEvent.public LogEvent toSerializable(LogEvent event)
event - The Logging Event.@Deprecated @PluginFactory public static SerializedLayout createLayout()
public byte[] getHeader()
AbstractLayoutpublic String getContentType()
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.