Class ESLogMessage

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

public abstract class ESLogMessage extends org.apache.logging.log4j.message.ParameterizedMessage
A base class for custom log4j logger messages. Carries additional fields which will populate JSON fields in logs.
See Also:
Serialized Form
  • Constructor Details

    • ESLogMessage

      public ESLogMessage(Map<String,Object> fields, String messagePattern, Object... args)
      This is an abstract class, so this is safe. The check is done on DeprecationMessage. Other subclasses are not allowing varargs
  • Method Details