Class DeprecatedMessage

java.lang.Object
org.apache.logging.log4j.message.ParameterizedMessage
org.elasticsearch.common.logging.ESLogMessage
org.elasticsearch.common.logging.DeprecatedMessage
All Implemented Interfaces:
java.io.Serializable, org.apache.logging.log4j.message.Message, org.apache.logging.log4j.util.StringBuilderFormattable

public class DeprecatedMessage
extends ESLogMessage
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
    Modifier and Type Field Description
    static java.lang.String X_OPAQUE_ID_FIELD_NAME  

    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

    Constructors
    Constructor Description
    DeprecatedMessage​(DeprecationCategory category, java.lang.String key, java.lang.String xOpaqueId, java.lang.String messagePattern, java.lang.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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • X_OPAQUE_ID_FIELD_NAME

      public static final java.lang.String X_OPAQUE_ID_FIELD_NAME
      See Also:
      Constant Field Values
  • Constructor Details

    • DeprecatedMessage

      public DeprecatedMessage​(DeprecationCategory category, java.lang.String key, java.lang.String xOpaqueId, java.lang.String messagePattern, java.lang.Object... args)