@Plugin(name="tca",
category="Lookup")
public final class TCALookup
extends org.apache.logging.log4j.core.lookup.AbstractLookup
StrLookup that returns properties specific to
TerminalConsoleAppender. The following properties are supported:
${tca:disableAnsi}: Can be used together with
PatternLayout to disable ANSI colors for patterns like
%highlight or %style if ANSI colors are unsupported
or are disabled for TerminalConsoleAppender.
Example usage:
<PatternLayout ... disableAnsi="${tca:disableAnsi}">
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_DISABLE_ANSI
Lookup key that returns if ANSI colors are unsupported/disabled.
|
| Constructor and Description |
|---|
TCALookup() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.String |
lookup(org.apache.logging.log4j.core.LogEvent event,
java.lang.String key) |
public static final java.lang.String KEY_DISABLE_ANSI