public class TemplateResolverConfig extends MapAccessor
Template resolvers
can use this class to
read the configuration associated with them.
For instance, given the following template:
{ "@version": 1, "message": { "$resolver": "message", "stringified": true }, "level": { "$resolver": "level", "field": "severity", "severity": { "field": "code" } } }
LevelResolverFactory.create(EventResolverContext, TemplateResolverConfig)
will be called with a TemplateResolverConfig
accessor to the
following configuration JSON object block:
{ "$resolver": "level", "field": "severity", "severity": { "field": "code" } }
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale(String key) |
Locale |
getLocale(String[] path) |
equals, exists, exists, getBoolean, getBoolean, getBoolean, getBoolean, getInteger, getInteger, getList, getList, getObject, getObject, getObject, getObject, getString, getString, hashCode, toString
Copyright © 1999-2024 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.