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 Marker in the LogEvent.
|
Modifier and Type | Field and Description |
---|---|
private PatternSelector |
PatternLayout.patternSelector |
private PatternSelector |
PatternLayout.SerializerBuilder.patternSelector |
private PatternSelector |
PatternLayout.PatternSelectorSerializer.patternSelector |
private PatternSelector |
PatternLayout.Builder.patternSelector |
Modifier and Type | Method and Description |
---|---|
static PatternLayout |
PatternLayout.createLayout(java.lang.String pattern,
PatternSelector patternSelector,
Configuration config,
RegexReplacement replace,
java.nio.charset.Charset charset,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
java.lang.String headerPattern,
java.lang.String footerPattern)
Deprecated.
Use
PatternLayout.newBuilder() instead. This will be private in a future version. |
static AbstractStringLayout.Serializer |
PatternLayout.createSerializer(Configuration configuration,
RegexReplacement replace,
java.lang.String pattern,
java.lang.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) |
Constructor and Description |
---|
PatternLayout(Configuration config,
RegexReplacement replace,
java.lang.String eventPattern,
PatternSelector patternSelector,
java.nio.charset.Charset charset,
boolean alwaysWriteExceptions,
boolean disableAnsi,
boolean noConsoleNoAnsi,
java.lang.String headerPattern,
java.lang.String footerPattern)
Constructs a PatternLayout using the supplied conversion pattern.
|
PatternSelectorSerializer(PatternSelector patternSelector,
RegexReplacement replace) |