Package org.elasticsearch.common.logging
Class DeprecatedMessage
java.lang.Object
org.apache.logging.log4j.message.ParameterizedMessage
org.elasticsearch.common.logging.ESLogMessage
org.elasticsearch.common.logging.DeprecatedMessage
- All Implemented Interfaces:
Serializable
,org.apache.logging.log4j.message.Message
,org.apache.logging.log4j.util.StringBuilderFormattable
A logger message used by
DeprecationLogger
.
Carries x-opaque-id field if provided in the headers. Will populate the x-opaque-id field in JSON logs.- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.apache.logging.log4j.message.ParameterizedMessage
ERROR_MSG_SEPARATOR, ERROR_PREFIX, ERROR_SEPARATOR, ERROR_SUFFIX, RECURSION_PREFIX, RECURSION_SUFFIX
-
Constructor Summary
ConstructorDescriptionDeprecatedMessage(DeprecationCategory category, String key, String xOpaqueId, String messagePattern, Object... args)
-
Method Summary
Methods inherited from class org.elasticsearch.common.logging.ESLogMessage
asJsonArray, getArguments, getMessagePattern, getValueFor, inQuotes, inQuotes
Methods inherited from class org.apache.logging.log4j.message.ParameterizedMessage
countArgumentPlaceholders, deepToString, equals, format, formatTo, getFormat, getFormattedMessage, getParameters, getThrowable, hashCode, identityToString, toString
-
Field Details
-
X_OPAQUE_ID_FIELD_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
DeprecatedMessage
public DeprecatedMessage(DeprecationCategory category, String key, String xOpaqueId, String messagePattern, Object... args)
-