public class LayoutAdapter extends Object implements org.apache.logging.log4j.core.Layout<String>
Constructor and Description |
---|
LayoutAdapter(Layout layout) |
Modifier and Type | Method and Description |
---|---|
void |
encode(org.apache.logging.log4j.core.LogEvent event,
org.apache.logging.log4j.core.layout.ByteBufferDestination destination) |
Map<String,String> |
getContentFormat() |
String |
getContentType() |
byte[] |
getFooter() |
byte[] |
getHeader() |
byte[] |
toByteArray(org.apache.logging.log4j.core.LogEvent event) |
String |
toSerializable(org.apache.logging.log4j.core.LogEvent event) |
public LayoutAdapter(Layout layout)
public byte[] getFooter()
getFooter
in interface org.apache.logging.log4j.core.Layout<String>
public byte[] getHeader()
getHeader
in interface org.apache.logging.log4j.core.Layout<String>
public byte[] toByteArray(org.apache.logging.log4j.core.LogEvent event)
toByteArray
in interface org.apache.logging.log4j.core.Layout<String>
public String toSerializable(org.apache.logging.log4j.core.LogEvent event)
toSerializable
in interface org.apache.logging.log4j.core.Layout<String>
public String getContentType()
getContentType
in interface org.apache.logging.log4j.core.Layout<String>
public Map<String,String> getContentFormat()
getContentFormat
in interface org.apache.logging.log4j.core.Layout<String>
public void encode(org.apache.logging.log4j.core.LogEvent event, org.apache.logging.log4j.core.layout.ByteBufferDestination destination)
encode
in interface org.apache.logging.log4j.core.layout.Encoder<org.apache.logging.log4j.core.LogEvent>
Copyright © 1999-1969 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.