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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ESLogMessage
compatibleDeprecationMessage(String key, String xOpaqueId, String messagePattern, Object... args)
static ESLogMessage
of(DeprecationCategory category, String key, String xOpaqueId, String messagePattern, Object... args)
-
Field Details
-
KEY_FIELD_NAME
- See Also:
- Constant Field Values
-
X_OPAQUE_ID_FIELD_NAME
- See Also:
- Constant Field Values
-
ECS_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
DeprecatedMessage
public DeprecatedMessage()
-
-
Method Details
-
of
public static ESLogMessage of(DeprecationCategory category, String key, String xOpaqueId, String messagePattern, Object... args) -
compatibleDeprecationMessage
public static ESLogMessage compatibleDeprecationMessage(String key, String xOpaqueId, String messagePattern, Object... args)
-