public abstract class IbisMaskingLayout
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 | Constructor and Description |
---|---|
protected |
IbisMaskingLayout(org.apache.logging.log4j.core.config.Configuration config,
Charset charset) |
Modifier and Type | Method and Description |
---|---|
static void |
addToGlobalReplace(String regex) |
static void |
addToThreadLocalReplace(Collection<String> collection) |
static void |
addToThreadLocalReplace(String regex)
Add regex to hide locally, meaning for specific threads/adapters.
|
static void |
cleanGlobalReplace() |
static Set<String> |
getGlobalReplace() |
static int |
getMaxLength() |
static String |
getMoreMessageString() |
static Set<String> |
getThreadLocalReplace()
Set of regex strings to hide locally, meaning for specific threads/adapters.
|
static void |
removeFromGlobalReplace(String regex) |
static void |
removeFromThreadLocalReplace(String regex)
Remove regex to hide locally, meaning for specific threads/adapters.
|
static void |
removeThreadLocalReplace() |
protected abstract 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.
|
static void |
setMaxLength(int maxLength) |
static void |
setMoreMessageString(String moreMessage) |
String |
toSerializable(org.apache.logging.log4j.core.LogEvent logEvent) |
getBytes, getCharset, getContentType, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, requiresLocation, serializeToBytes, serializeToString, toByteArray, trimToMaxSize
encode, getConfiguration, getContentFormat, markEvent
protected IbisMaskingLayout(org.apache.logging.log4j.core.config.Configuration config, Charset charset)
config
- charset
- defaults to the system's defaultpublic final String toSerializable(org.apache.logging.log4j.core.LogEvent logEvent)
protected abstract String serializeEvent(org.apache.logging.log4j.core.LogEvent event)
event
- Event to be serialized to a String.public static void setMaxLength(int maxLength)
public static int getMaxLength()
public static String getMoreMessageString()
public static void setMoreMessageString(String moreMessage)
public static void addToGlobalReplace(String regex)
public static void removeFromGlobalReplace(String regex)
public static void cleanGlobalReplace()
public static void addToThreadLocalReplace(Collection<String> collection)
public static void addToThreadLocalReplace(String regex)
public static void removeFromThreadLocalReplace(String regex)
public static Set<String> getThreadLocalReplace()
public static void removeThreadLocalReplace()
Copyright © 2023 Frank!Framework. All rights reserved.