Modifier and Type | Field and Description |
---|---|
private Layout |
layout |
ELEMENT_TYPE
Constructor and Description |
---|
LayoutAdapter(Layout layout) |
Modifier and Type | Method and Description |
---|---|
void |
encode(LogEvent event,
ByteBufferDestination destination)
Encodes the specified source object to some binary representation and writes the result to the specified
destination.
|
java.util.Map<java.lang.String,java.lang.String> |
getContentFormat()
Returns a description of the content format.
|
java.lang.String |
getContentType()
Returns the content type output by this layout.
|
byte[] |
getFooter()
Returns the format for the layout format.
|
byte[] |
getHeader()
Returns the header for the layout format.
|
byte[] |
toByteArray(LogEvent event)
Formats the event suitable for display.
|
java.lang.String |
toSerializable(LogEvent event)
Formats the event as an Object that can be serialized.
|
private Layout layout
public LayoutAdapter(Layout layout)
public byte[] getFooter()
Layout
public byte[] getHeader()
Layout
public byte[] toByteArray(LogEvent event)
Layout
toByteArray
in interface Layout<java.lang.String>
event
- The Logging Event.public java.lang.String toSerializable(LogEvent event)
Layout
toSerializable
in interface Layout<java.lang.String>
event
- The Logging Event.public java.lang.String getContentType()
Layout
getContentType
in interface Layout<java.lang.String>
public java.util.Map<java.lang.String,java.lang.String> getContentFormat()
Layout
getContentFormat
in interface Layout<java.lang.String>
public void encode(LogEvent event, ByteBufferDestination destination)
Encoder