Class TemplateResolverConfig
- java.lang.Object
-
- org.apache.logging.log4j.layout.template.json.util.MapAccessor
-
- org.apache.logging.log4j.layout.template.json.resolver.TemplateResolverConfig
-
public class TemplateResolverConfig extends MapAccessor
Accessor to the resolver configuration JSON object read from the template.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 aTemplateResolverConfig
accessor to the following configuration JSON object block:{ "$resolver": "level", "field": "severity", "severity": { "field": "code" } }
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Locale
getLocale(String key)
Locale
getLocale(String[] path)
-
Methods inherited from class org.apache.logging.log4j.layout.template.json.util.MapAccessor
equals, exists, exists, getBoolean, getBoolean, getBoolean, getBoolean, getInteger, getInteger, getList, getList, getObject, getObject, getObject, getObject, getString, getString, hashCode, toString
-
-