|
||||||||||
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
public final class SerializedLayout
Format a LogEvent in its serialized form.
Field Summary |
---|
Fields inherited from class org.apache.logging.log4j.core.layout.AbstractLayout |
---|
footer, LOGGER |
Method Summary | |
---|---|
static SerializedLayout |
createLayout()
Create 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 in conformance with the log4j.dtd. |
LogEvent |
toSerializable(LogEvent event)
Returns the LogEvent. |
Methods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout |
---|
getFooter, setFooter, setHeader |
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
in conformance with the log4j.dtd.
event
- The LogEvent.
public LogEvent toSerializable(LogEvent event)
event
- The Logging Event.
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-2013 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.