Package org.frankframework.logging
Class IbisPatternLayout
java.lang.Object
org.apache.logging.log4j.core.layout.AbstractLayout<String>
org.apache.logging.log4j.core.layout.AbstractStringLayout
org.frankframework.logging.IbisMaskingLayout
org.frankframework.logging.IbisPatternLayout
- All Implemented Interfaces:
org.apache.logging.log4j.core.impl.LocationAware
,org.apache.logging.log4j.core.Layout<String>
,org.apache.logging.log4j.core.layout.Encoder<org.apache.logging.log4j.core.LogEvent>
,org.apache.logging.log4j.core.StringLayout
@Plugin(name="IbisPatternLayout",
category="Core",
elementType="layout",
printObject=true)
public class IbisPatternLayout
extends IbisMaskingLayout
Implementation of
IbisMaskingLayout
to serialize given log events
according to the given pattern.-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.logging.IbisMaskingLayout
IbisMaskingLayout.HideRegexContext
Nested classes/interfaces inherited from class 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
-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout
DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZE
Fields inherited from class org.apache.logging.log4j.core.layout.AbstractLayout
configuration, eventCount, footer, header, LOGGER
Fields inherited from interface org.apache.logging.log4j.core.Layout
ELEMENT_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Methods inherited from class org.frankframework.logging.IbisMaskingLayout
addToGlobalReplace, addToGlobalReplace, clearGlobalReplace, clearThreadLocalReplace, getGlobalReplace, getMaxLength, getMoreMessageString, getThreadLocalReplace, maskSensitiveInfo, pushToThreadLocalReplace, setMaxLength, setMoreMessageString, setThreadLocalReplace, toSerializable
Methods inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout
getBytes, getCharset, getContentType, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, requiresLocation, serializeToBytes, serializeToString, toByteArray, trimToMaxSize
Methods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout
encode, getConfiguration, getContentFormat, markEvent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.layout.Encoder
encode
Methods inherited from interface org.apache.logging.log4j.core.Layout
getContentFormat
-
Method Details
-
serializeEvent
Description copied from class:IbisMaskingLayout
Mutable LogEvent which masks messages using global and local regex strings, and shortens the message to a maximum length, if necessary.- Specified by:
serializeEvent
in classIbisMaskingLayout
- Parameters:
event
- Event to be serialized to a String.- Returns:
- Serialized and masked event.
-
createLayout
@PluginFactory public static IbisPatternLayout createLayout(@PluginAttribute(value="pattern",defaultString="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t] %X %c{2} - %m%n") String pattern, @PluginConfiguration org.apache.logging.log4j.core.config.Configuration config, @PluginAttribute("charset") Charset charset, @PluginAttribute(value="alwaysWriteExceptions",defaultBoolean=true) boolean alwaysWriteExceptions, @PluginAttribute("noConsoleNoAnsi") boolean noConsoleNoAnsi, @PluginAttribute("disableAnsi") boolean disableAnsi)
-