Package | Description |
---|---|
org.apache.logging.log4j.core.pattern |
Provides classes implementing format specifiers in conversion patterns.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ArrayPatternConverter
PatternConverter s implement this interface to accept an array of objects when formatting. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractPatternConverter
AbstractPatternConverter is an abstract class that provides the formatting functionality that derived classes need.
|
class |
AbstractStyleNameConverter
Style pattern converter.
|
static class |
AbstractStyleNameConverter.Black
Black style pattern converter.
|
static class |
AbstractStyleNameConverter.Blue
Blue style pattern converter.
|
static class |
AbstractStyleNameConverter.Cyan
Cyan style pattern converter.
|
static class |
AbstractStyleNameConverter.Green
Green style pattern converter.
|
static class |
AbstractStyleNameConverter.Magenta
Magenta style pattern converter.
|
static class |
AbstractStyleNameConverter.Red
Red style pattern converter.
|
static class |
AbstractStyleNameConverter.White
White style pattern converter.
|
static class |
AbstractStyleNameConverter.Yellow
Yellow style pattern converter.
|
class |
ClassNamePatternConverter
Formats the class name of the site of the logging request.
|
class |
DatePatternConverter
Convert and format the event's date in a StringBuilder.
|
class |
EncodingPatternConverter
Returns the event's rendered message in a StringBuilder.
|
class |
ExtendedThrowablePatternConverter
Outputs the Throwable portion of the LoggingEvent as a full stack trace
unless this converter's option is 'short', where it just outputs the first line of the trace, or if
the number of lines to print is explicitly specified.
|
class |
FileLocationPatternConverter
Returns the event's line location information in a StringBuilder.
|
class |
FullLocationPatternConverter
Format the event's line location information.
|
class |
HighlightConverter
Highlight pattern converter.
|
class |
IntegerPatternConverter
Formats an integer.
|
class |
LevelPatternConverter
Returns the event's level in a StringBuilder.
|
class |
LineLocationPatternConverter
Returns the event's line location information in a StringBuilder.
|
class |
LineSeparatorPatternConverter
Formats a line separator.
|
class |
LiteralPatternConverter
Formats a string literal.
|
class |
LogEventPatternConverter
LoggingEventPatternConverter is a base class for pattern converters
that can format information from instances of LoggingEvent.
|
class |
LoggerPatternConverter
Formats a logger name.
|
class |
MapPatternConverter
Able to handle the contents of the LogEvent's MapMessage and either
output the entire contents of the properties in a similar format to the
java.util.Hashtable.toString(), or to output the value of a specific key
within the Map.
|
class |
MarkerPatternConverter
Returns the event's rendered message in a StringBuilder.
|
class |
MdcPatternConverter
Able to handle the contents of the LogEvent's MDC and either
output the entire contents of the properties in a similar format to the
java.util.Hashtable.toString(), or to output the value of a specific key
within the property bundle
when this pattern converter has the option set.
|
class |
MessagePatternConverter
Returns the event's rendered message in a StringBuilder.
|
class |
MethodLocationPatternConverter
Returns the event's line location information in a StringBuilder.
|
class |
NamePatternConverter
Abstract base class for other pattern converters which can return only parts of their name.
|
class |
NdcPatternConverter
Returns the event's NDC in a StringBuilder.
|
class |
RegexReplacementConverter
Replacement pattern converter.
|
class |
RelativeTimePatternConverter
Returns the relative time in milliseconds since JVM Startup.
|
class |
RootThrowablePatternConverter
Outputs the Throwable portion of the LoggingEvent as a full stack trace
unless this converter's option is 'short', where it just outputs the first line of the trace, or if
the number of lines to print is explicitly specified.
|
class |
SequenceNumberPatternConverter
Formats the event sequence number.
|
class |
StyleConverter
Style pattern converter.
|
class |
ThreadPatternConverter
Formats the event thread name.
|
class |
ThrowablePatternConverter
Outputs the Throwable portion of the LoggingEvent as a full stack trace
unless this converter's option is 'short', where it just outputs the first line of the trace, or if
the number of lines to print is explicitly specified.
|
class |
UuidPatternConverter
Formats the event sequence number.
|
Modifier and Type | Method and Description |
---|---|
static PatternConverter |
FileDatePatternConverter.newInstance(String[] options)
Obtains an instance of pattern converter.
|
Modifier and Type | Method and Description |
---|---|
void |
PatternParser.parse(String pattern,
List<PatternConverter> patternConverters,
List<FormattingInfo> formattingInfos,
boolean noConsoleNoAnsi,
boolean convertBackslashes)
Parse a format specifier.
|
Copyright © 1999-2021 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.