Module org.elasticsearch.server
Package org.elasticsearch.common.logging
package org.elasticsearch.common.logging
-
ClassDescriptionAn
OutputStream
which Gzip-compresses the written data, Base64-encodes it, and writes it in fixed-size chunks to a logger.Pattern converter to format the cluster_id variable into JSON fieldscluster.id
.Outputs a very short version of exceptions for an interactive console, pointing to full log for details.Pattern converter to populate CustomMapFields in a pattern.A logger message used byDeprecationLogger
, enriched with fields named following ECS conventions.Deprecation log messages are categorised so that consumers of the logs can easily aggregate them.A logger that logs deprecation notices.An implementation of log4j2'sContextDataProvider
that can be configured at runtime (after being loaded by log4j's init mechanism).This is a wrapper class aroundco.elastic.logging.log4j2.EcsLayout
in order to avoid a duplication of configuration in log4j2.propertiesDeprecated.ECSJsonlayout should be used as JSON logs layoutESJsonLayout.Builder<B extends ESJsonLayout.Builder<B>>A base class for custom log4j logger messages.This is a simplistic logger that adds warning messages to HTTP headers.Outputs the Throwable portion of the LoggingEvent as a Json formatted field with array "exception": [ "stacktrace", "lines", "as", "array", "elements" ] Reusing @link org.apache.logging.log4j.core.pattern.ExtendedThrowablePatternConverter which already converts a Throwable from LoggingEvent into a multiline stringFormat string for Elasticsearch log messages.A set of utilities around Logging.Deprecated.this class is kept in order to allow working log configuration from 7.xTheNodeAndClusterIdStateListener
listens to cluster state changes and ONLY when receives the first update it sets the clusterUUID and nodeID in log4j pattern converterNodeIdConverter
.Pattern converter to format the node_id variable into JSON fieldsnode.id
.Converts%node_name
in log4j patterns into the current node name.A filter used for throttling deprecation logs.Pattern converter to format the trace id provided in the traceparent header into JSON fieldstrace.id
.