All Classes and Interfaces
Class
Description
Provides the common functionality for building JSON representations
of
IAccessEvent
and ILoggingEvent
events.AbstractJsonLayoutBaseFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
Name
Default
Description
timestampFormat
(none)
By default, the timestamp is not formatted; To format the timestamp using set the property with the
corresponding DateTimeFormatter
string, for example, yyyy-MM-ddTHH:mm:ss.SSSZ
prettyPrint
false
Whether the JSON output should be formatted for human readability.
appendLineSeparator
true
Whether to append a line separator at the end of the message formatted as JSON.
customFieldNames
empty
A map of field name replacements.Represents access logging attributes.
Builds JSON messages from access log events as
IAccessEvent
.
Name
Default
Description
includes
(timestamp, remoteAddress,requestTime, requestUri, statusCode, method, protocol, contentLength, userAgent))
Set of logging event attributes to include in the JSON map.
requestHeaders
(empty)
Set of request headers included in the JSON map as the ``headers`` field.
responseHeaders
(empty)
Set of response headers included in the JSON map as the ``responseHeaders`` field.
Represents event logging attributes.
Builds JSON messages from logging events of the type
ILoggingEvent
.
Name
Default
Description
includes
(level, threadName, mdc, loggerName, message, exception, timestamp, callerData)
Set of logging event attributes to include in the JSON map.
includesMdcKeys
(empty)
Set of MDC keys which should be included in the JSON map.Formats objects to JSON strings according to the configured
ObjectMapper
and output parameters.Builds a Java map based on the provided configuration and customization.
A faster timestamp formatter than the default one in Logback.