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.| Modifier and Type | Class and Description |
|---|---|
private class |
SerializedLayout.PrivateObjectOutputStream
Deprecated.
The stream header will be written in the Manager so skip it here.
|
AbstractLayout.Builder<B extends AbstractLayout.Builder<B>>| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
serializedHeader
Deprecated.
|
configuration, eventCount, footer, header, LOGGERELEMENT_TYPE| Modifier | Constructor and Description |
|---|---|
private |
SerializedLayout()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static SerializedLayout |
createLayout()
Deprecated.
|
java.lang.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 java.lang.String getContentType()