@Plugin(name="Log4j1SyslogLayout", category="Core", elementType="layout", printObject=true) public final class Log4j1SyslogLayout extends AbstractStringLayout
| Modifier and Type | Class and Description |
|---|---|
static class |
Log4j1SyslogLayout.Builder<B extends Log4j1SyslogLayout.Builder<B>>
Builds a SyslogLayout.
|
AbstractStringLayout.Serializer, AbstractStringLayout.Serializer2DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZEconfiguration, eventCount, footer, LOGGERELEMENT_TYPE| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getContentFormat()
Gets this SyslogLayout's content format.
|
static <B extends Log4j1SyslogLayout.Builder<B>> |
newBuilder() |
String |
toSerializable(LogEvent event)
Formats a
LogEvent in conformance with the BSD Log record format. |
getBytes, getCharset, getContentType, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, requiresLocation, serializeToBytes, serializeToString, toByteArray, trimToMaxSizeencode, getConfiguration, markEvent@PluginBuilderFactory public static <B extends Log4j1SyslogLayout.Builder<B>> B newBuilder()
public String toSerializable(LogEvent event)
LogEvent in conformance with the BSD Log record format.event - The LogEventpublic Map<String,String> getContentFormat()
getContentFormat in interface Layout<String>getContentFormat in class AbstractLayout<String>Copyright © 1999-2022 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.