@Plugin(name="IbisPatternLayout", category="Core", elementType="layout", printObject=true) public class IbisPatternLayout extends IbisMaskingLayout
IbisMaskingLayout
to serialize given log events
according to the given pattern.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 IbisPatternLayout |
createLayout(String pattern,
org.apache.logging.log4j.core.config.Configuration config,
Charset charset,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
boolean disableAnsi) |
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 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 IbisPatternLayout createLayout(@PluginAttribute(value="pattern",defaultString="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t] %TC %c{2} - %m%n") String pattern, @PluginConfiguration org.apache.logging.log4j.core.config.Configuration config, @PluginAttribute(value="charset") Charset charset, @PluginAttribute(value="alwaysWriteExceptions",defaultBoolean=true) boolean alwaysWriteExceptions, @PluginAttribute(value="noConsoleNoAnsi") boolean noConsoleNoAnsi, @PluginAttribute(value="disableAnsi") boolean disableAnsi)
Copyright © 2023 Frank!Framework. All rights reserved.