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 resolverscan 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 aTemplateResolverConfigaccessor to the following configuration JSON object block:{ "$resolver": "level", "field": "severity", "severity": { "field": "code" } }
-
-
Constructor Summary
Constructors Constructor Description TemplateResolverConfig(java.util.Map<java.lang.String,java.lang.Object> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.LocalegetLocale(java.lang.String key)java.util.LocalegetLocale(java.lang.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
-
-