Class TemplateResolverConfig
java.lang.Object
org.apache.logging.log4j.layout.template.json.util.MapAccessor
org.apache.logging.log4j.layout.template.json.resolver.TemplateResolverConfig
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 a TemplateResolverConfig
accessor to the
following configuration JSON object block:
{ "$resolver": "level", "field": "severity", "severity": { "field": "code" } }
-
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
TemplateResolverConfig
-
-
Method Details
-
getLocale
-
getLocale
-