Package org.elasticsearch.common.logging
Class NodeAndClusterIdConverter
java.lang.Object
org.apache.logging.log4j.core.pattern.AbstractPatternConverter
org.apache.logging.log4j.core.pattern.LogEventPatternConverter
org.elasticsearch.common.logging.NodeAndClusterIdConverter
- All Implemented Interfaces:
org.apache.logging.log4j.core.pattern.PatternConverter
@Plugin(category="Converter",
name="NodeAndClusterIdConverter")
@Deprecated
public final class NodeAndClusterIdConverter
extends org.apache.logging.log4j.core.pattern.LogEventPatternConverter
Deprecated.
this class is kept in order to allow working log configuration from 7.x
Pattern converter to format the node_and_cluster_id variable into JSON fields
node.id
and cluster.uuid
.
Keeping those two fields together assures that they will be atomically set and become visible in logs at the same time.-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
LOGGER
Fields inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter
CATEGORY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
format
(org.apache.logging.log4j.core.LogEvent event, StringBuilder toAppendTo) Deprecated.Formats the node.id and cluster.uuid into json fields.static NodeAndClusterIdConverter
newInstance
(String[] options) Deprecated.Called by log4j2 to initialize this converter.Methods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
format, handlesThrowable, isVariable
Methods inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
getName, getStyleClass
-
Constructor Details
-
NodeAndClusterIdConverter
public NodeAndClusterIdConverter()Deprecated.
-
-
Method Details
-
newInstance
Deprecated.Called by log4j2 to initialize this converter. -
format
Deprecated.Formats the node.id and cluster.uuid into json fields.- Specified by:
format
in classorg.apache.logging.log4j.core.pattern.LogEventPatternConverter
- Parameters:
event
- - a log event is ignored in this method as it uses the nodeId and clusterId to format
-