@Plugin(name="JsonTemplateLayout", category="Core", elementType="layout") public class JsonTemplateLayout extends Object implements StringLayout
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonTemplateLayout.Builder |
static class |
JsonTemplateLayout.EventTemplateAdditionalField |
ELEMENT_TYPE| Modifier and Type | Method and Description |
|---|---|
void |
encode(LogEvent event,
ByteBufferDestination destination) |
Charset |
getCharset() |
Map<String,String> |
getContentFormat() |
String |
getContentType() |
byte[] |
getFooter() |
byte[] |
getHeader() |
static JsonTemplateLayout.Builder |
newBuilder() |
byte[] |
toByteArray(LogEvent event) |
String |
toSerializable(LogEvent event) |
public byte[] toByteArray(LogEvent event)
toByteArray in interface Layout<String>public String toSerializable(LogEvent event)
toSerializable in interface Layout<String>public void encode(LogEvent event, ByteBufferDestination destination)
public Charset getCharset()
getCharset in interface StringLayoutpublic String getContentType()
getContentType in interface Layout<String>public Map<String,String> getContentFormat()
getContentFormat in interface Layout<String>@PluginBuilderFactory public static JsonTemplateLayout.Builder newBuilder()
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.