Package | Description |
---|---|
org.apache.logging.log4j.core.layout |
Log4j 2 Layout support.
|
Modifier and Type | Class and Description |
---|---|
class |
LevelPatternSelector
Selects the pattern to use based on the Level in the LogEvent.
|
class |
MarkerPatternSelector
Selects the pattern to use based on the Marker in the LogEvent.
|
class |
ScriptPatternSelector
Selects the pattern to use based on the result of executing a Script.
|
Modifier and Type | Method and Description |
---|---|
static PatternLayout |
PatternLayout.createLayout(String pattern,
PatternSelector patternSelector,
Configuration config,
RegexReplacement replace,
Charset charset,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
String headerPattern,
String footerPattern)
Deprecated.
Use
PatternLayout.newBuilder() instead. This will be private in a future version. |
static AbstractStringLayout.Serializer |
PatternLayout.createSerializer(Configuration configuration,
RegexReplacement replace,
String pattern,
String defaultPattern,
PatternSelector patternSelector,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi)
Deprecated.
Use
PatternLayout.newSerializerBuilder() instead. |
PatternLayout.SerializerBuilder |
PatternLayout.SerializerBuilder.setPatternSelector(PatternSelector patternSelector) |
PatternLayout.Builder |
PatternLayout.Builder.withPatternSelector(PatternSelector patternSelector) |
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.