Package org.elasticsearch.common.logging
Class DeprecatedMessage
java.lang.Object
org.elasticsearch.common.logging.DeprecatedMessage
A logger message used by
DeprecationLogger
, enriched with fields
named following ECS conventions. Carries x-opaque-id field if provided in the headers.
Will populate the x-opaque-id field in JSON logs.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ESLogMessage
compatibleDeprecationMessage
(String key, String xOpaqueId, String productOrigin, String messagePattern, Object... args) static ESLogMessage
of
(DeprecationCategory category, String key, String xOpaqueId, String productOrigin, String messagePattern, Object... args)
-
Field Details
-
ELASTIC_ORIGIN_FIELD_NAME
- See Also:
-
KEY_FIELD_NAME
- See Also:
-
X_OPAQUE_ID_FIELD_NAME
- See Also:
-
ECS_VERSION
- See Also:
-
-
Constructor Details
-
DeprecatedMessage
public DeprecatedMessage()
-
-
Method Details
-
of
public static ESLogMessage of(DeprecationCategory category, String key, String xOpaqueId, String productOrigin, String messagePattern, Object... args) -
compatibleDeprecationMessage
-