Package org.elasticsearch.common.logging
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
-
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
asJsonArray(Stream<String> stream)
Object[]
getValueFor(String key)
static String
static String
Methods inherited from class org.apache.logging.log4j.message.ParameterizedMessage
countArgumentPlaceholders, deepToString, equals, format, formatTo, getFormat, getFormattedMessage, getParameters, getThrowable, hashCode, identityToString, toString
-
Constructor Details
-
ESLogMessage
This is an abstract class, so this is safe. The check is done on DeprecationMessage. Other subclasses are not allowing varargs
-
-
Method Details
-
getValueFor
-
inQuotes
-
inQuotes
-
asJsonArray
-
getArguments
-
getMessagePattern
-