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.
|
Map<String,String> |
getContentFormat()
Returns a description of the content format.
|
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.
|
String |
toSerializable(LogEvent event)
Formats the event as an Object that can be serialized.
|
public LayoutAdapter(Layout layout)
public byte[] getFooter()
Layout
public byte[] getHeader()
Layout
public byte[] toByteArray(LogEvent event)
Layout
toByteArray
in interface Layout<String>
event
- The Logging Event.public String toSerializable(LogEvent event)
Layout
toSerializable
in interface Layout<String>
event
- The Logging Event.public String getContentType()
Layout
getContentType
in interface Layout<String>
public Map<String,String> getContentFormat()
Layout
getContentFormat
in interface Layout<String>
public void encode(LogEvent event, ByteBufferDestination destination)
Encoder
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.