Package | Description |
---|---|
org.apache.logging.log4j.core |
Implementation of Log4j 2.
|
org.apache.logging.log4j.core.layout |
Log4j 2 Layout support.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Layout<T extends Serializable>
Lays out a LogEvent in different formats.
|
interface |
StringLayout
Instantiates the @{link Layout} type for String-based layouts.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCsvLayout
A superclass for Comma-Separated Value (CSV) layouts.
|
class |
AbstractLayout<T extends Serializable>
Abstract base class for Layouts.
|
class |
AbstractStringLayout
Abstract base class for Layouts that result in a String.
|
class |
CsvLogEventLayout
A Comma-Separated Value (CSV) layout to log events.
|
class |
CsvParameterLayout
A Comma-Separated Value (CSV) layout to log event parameters.
|
class |
GelfLayout
Lays out events in the Graylog Extended Log Format (GELF) 1.1.
|
class |
HtmlLayout
Outputs events as rows in an HTML table on an HTML page.
|
class |
JsonLayout
Note: The JsonLayout should be considered to be deprecated.
|
class |
LockingStringBuilderEncoder
Encoder for StringBuilders that locks on the ByteBufferDestination.
|
class |
MessageLayout
Formats a
LogEvent in its Message form. |
class |
PatternLayout
A flexible layout configurable with pattern string.
|
class |
Rfc5424Layout
Formats a log event in accordance with RFC 5424.
|
class |
SerializedLayout
Deprecated.
Java Serialization has inherent security weaknesses, see https://www.owasp.org/index.php/Deserialization_of_untrusted_data .
Using this layout is no longer recommended. An alternative layout containing the same information is
JsonLayout when configured with properties="true". Deprecated since 2.9. |
class |
StringBuilderEncoder
Encoder for StringBuilders that uses ThreadLocals to avoid locking as much as possible.
|
class |
SyslogLayout
Formats a log event as a BSD Log record.
|
class |
XmlLayout
Appends a series of
event elements as defined in the log4j.dtd. |
class |
YamlLayout
Appends a series of YAML events as strings serialized as bytes.
|
Modifier and Type | Method and Description |
---|---|
protected Encoder<StringBuilder> |
AbstractStringLayout.getStringBuilderEncoder()
Returns a
Encoder<StringBuilder> that this Layout implementation can use for encoding log events. |
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.