@Plugin(name="Log4j1XmlLayout", category="Core", elementType="layout", printObject=true) public final class Log4j1XmlLayout extends org.apache.logging.log4j.core.layout.AbstractStringLayout
org.apache.logging.log4j.core.layout.AbstractStringLayout.Builder<B extends org.apache.logging.log4j.core.layout.AbstractStringLayout.Builder<B>>, org.apache.logging.log4j.core.layout.AbstractStringLayout.Serializer, org.apache.logging.log4j.core.layout.AbstractStringLayout.Serializer2
DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZE
Modifier and Type | Method and Description |
---|---|
static Log4j1XmlLayout |
createLayout(boolean locationInfo,
boolean properties) |
void |
encode(org.apache.logging.log4j.core.LogEvent event,
org.apache.logging.log4j.core.layout.ByteBufferDestination destination) |
boolean |
isLocationInfo() |
boolean |
isProperties() |
String |
toSerializable(org.apache.logging.log4j.core.LogEvent event) |
getBytes, getCharset, getContentType, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, requiresLocation, serializeToBytes, serializeToString, toByteArray, trimToMaxSize
getConfiguration, getContentFormat, markEvent
@PluginFactory public static Log4j1XmlLayout createLayout(@PluginAttribute(value="locationInfo") boolean locationInfo, @PluginAttribute(value="properties") boolean properties)
public boolean isLocationInfo()
public boolean isProperties()
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>
encode
in class org.apache.logging.log4j.core.layout.AbstractLayout<String>
public String toSerializable(org.apache.logging.log4j.core.LogEvent event)
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.