Uses of Package
org.apache.logging.log4j.core.layout
Package
Description
Implementation of Log4j 2.
Log4j 2 Appenders.
The JDBC Appender supports writing log events to a relational database using standard JDBC connections.
Rolling File Appender and support classes.
Log4j 2 Layout support.
Log4j 2 network support.
-
ClassDescriptionObjects implementing the
Encoder
interface know how to convert an object to some binary representation and write the result to aByteBuffer
, ideally without creating temporary objects. -
ClassDescriptionByteBufferDestination is the destination that
Encoder
s write binary data to.A LoggerFields container. -
-
-
ClassDescriptionA superclass for Comma-Separated Value (CSV) layouts.Abstract base class for Layouts.Subclasses can extend this abstract Builder.Abstract base class for Layouts that result in a String.Variation of
AbstractStringLayout.Serializer
that avoids allocating temporary objects.ByteBufferDestination is the destination thatEncoder
s write binary data to.A Comma-Separated Value (CSV) layout to log events.Objects implementing theEncoder
interface know how to convert an object to some binary representation and write the result to aByteBuffer
, ideally without creating temporary objects.Lays out events in the Graylog Extended Log Format (GELF) 1.1.Outputs events as rows in an HTML table on an HTML page.Possible font sizesNote: The JsonLayout should be considered to be deprecated.Selects the pattern to use based on the Level in the LogEvent.Custom MarkerPatternSelector builder.A LoggerFields container.Selects the pattern to use based on the Marker in the LogEvent.Custom MarkerPatternSelector builder.A flexible layout configurable with pattern string.Custom PatternLayout builder.PatternMatch configuration item.Allows different patterns to be used with the PatternLayout based on some selection criteria.Formats a log event in accordance with RFC 5424.Selects the pattern to use based on the result of executing a Script.Custom ScriptPatternSelector builder.Deprecated.Java Serialization has inherent security weaknesses, see https://www.owasp.org/index.php/Deserialization_of_untrusted_data .Formats a log event as a BSD Log record.Builds a SyslogLayout.Appends a series ofevent
elements as defined in the log4j.dtd.Appends a series of YAML events as strings serialized as bytes. -