public final class MessageParameterResolver extends Object implements EventResolver
Message
parameter (i.e., Message.getParameters()
) resolver.
config = [ stringified ] , [ index ] stringified = "stringified" -> boolean index = "index" -> number
{ "$resolver": "messageParameter" }Resolve the string representation of all message parameters into an array:
{ "$resolver": "messageParameter", "stringified": true }Resolve the first message parameter:
{ "$resolver": "messageParameter", "index": 0 } Resolve the string representation of the first message parameter:{ "$resolver": "messageParameter", "index": 0, "stringified": true }
Modifier and Type | Method and Description |
---|---|
void |
resolve(LogEvent logEvent,
JsonWriter jsonWriter)
Resolves the given
value using the provided JsonWriter . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFlattening, isResolvable, isResolvable, resolve
public void resolve(LogEvent logEvent, JsonWriter jsonWriter)
TemplateResolver
value
using the provided JsonWriter
.resolve
in interface TemplateResolver<LogEvent>
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.