|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.layout.AbstractLayout<LogEvent>
org.apache.logging.log4j.core.layout.SerializedLayout
@Plugin(name="SerializedLayout", category="Core", elementType="layout", printObject=true) public final class SerializedLayout
Formats a LogEvent
in its Java serialized form.
Field Summary |
---|
Fields inherited from class org.apache.logging.log4j.core.layout.AbstractLayout |
---|
footer, header, LOGGER |
Fields inherited from interface org.apache.logging.log4j.core.Layout |
---|
ELEMENT_TYPE |
Method Summary | |
---|---|
static SerializedLayout |
createLayout()
Creates a SerializedLayout. |
String |
getContentType()
SerializedLayout returns a binary stream. |
byte[] |
getHeader()
Returns the header, if one is available. |
byte[] |
toByteArray(LogEvent event)
Formats a LogEvent as a serialized byte array of the LogEvent object. |
LogEvent |
toSerializable(LogEvent event)
Returns the LogEvent. |
Methods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout |
---|
getContentFormat, getFooter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public 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.
@PluginFactory public static SerializedLayout createLayout()
public byte[] getHeader()
AbstractLayout
getHeader
in interface Layout<LogEvent>
getHeader
in class AbstractLayout<LogEvent>
public String getContentType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 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.