Class DeprecatedMessage

org.apache.logging.log4j.message.ParameterizedMessage
org.elasticsearch.common.logging.ESLogMessage
org.elasticsearch.common.logging.DeprecatedMessage
All Implemented Interfaces:
, 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
     

    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,  key,  xOpaqueId,  messagePattern, ... 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.

    , , , , , , ,
  • Field Details

  • Constructor Details

    • DeprecatedMessage

      public DeprecatedMessage(DeprecationCategory category,  key,  xOpaqueId,  messagePattern, ... args)