@Plugin(name="IbisXmlLayout", category="Core", elementType="layout", printObject=true) public class IbisXmlLayout extends IbisMaskingLayout
IbisMaskingLayout
to serialize given log events
in the following format:
<log4j:event logger="nl.nn.adapterframework.xxx" timestamp="123" level="DEBUG" thread="thread-1">
<log4j:message><![CDATA[my message here]]></log4j:message>
<log4j:throwable><![CDATA[]]></log4j:throwable>
</log4j:event>
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 | Constructor and Description |
---|---|
protected |
IbisXmlLayout(org.apache.logging.log4j.core.config.Configuration config,
Charset charset,
boolean alwaysWriteExceptions) |
Modifier and Type | Method and Description |
---|---|
static IbisXmlLayout |
createLayout(org.apache.logging.log4j.core.config.Configuration config,
Charset charset,
boolean alwaysWriteExceptions) |
protected String |
serializeEvent(org.apache.logging.log4j.core.LogEvent event)
Mutable LogEvent which masks messages using global and local regex strings,
and shortens the message to a maximum length, if necessary.
|
addToGlobalReplace, addToThreadLocalReplace, addToThreadLocalReplace, cleanGlobalReplace, getGlobalReplace, getMaxLength, getMoreMessageString, getThreadLocalReplace, removeFromGlobalReplace, removeFromThreadLocalReplace, removeThreadLocalReplace, setMaxLength, setMoreMessageString, toSerializable
getBytes, getCharset, getContentType, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, requiresLocation, serializeToBytes, serializeToString, toByteArray, trimToMaxSize
encode, getConfiguration, getContentFormat, markEvent
protected IbisXmlLayout(org.apache.logging.log4j.core.config.Configuration config, Charset charset, boolean alwaysWriteExceptions)
protected String serializeEvent(org.apache.logging.log4j.core.LogEvent event)
IbisMaskingLayout
serializeEvent
in class IbisMaskingLayout
event
- Event to be serialized to a String.@PluginFactory public static IbisXmlLayout createLayout(@PluginConfiguration org.apache.logging.log4j.core.config.Configuration config, @PluginAttribute(value="charset") Charset charset, @PluginAttribute(value="alwaysWriteExceptions",defaultBoolean=false) boolean alwaysWriteExceptions)
Copyright © 2023 Frank!Framework. All rights reserved.