@Plugin(name="SafeXMLLayout",
category="Core",
elementType="layout",
printObject=true)
public final class SafeXMLLayout
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 SafeXMLLayout |
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, serializeToBytes, serializeToString, toByteArray, trimToMaxSize
getConfiguration, getContentFormat, markEvent
@PluginFactory public static SafeXMLLayout 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)