@Plugin(name="EventRootObjectKeyInterceptor", category="JsonTemplateResolverInterceptor") public class EventRootObjectKeyInterceptor extends Object implements EventResolverInterceptor
JsonTemplateLayout.Builder#getEventTemplateRootObjectKey()
CATEGORY
Modifier and Type | Method and Description |
---|---|
static EventRootObjectKeyInterceptor |
getInstance() |
Object |
processTemplateBeforeResolverInjection(EventResolverContext context,
Object node)
Intercept the read template before compiler (i.e.,
TemplateResolvers.ofTemplate(TemplateResolverContext, String)
starts injecting resolvers. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextClass, getValueClass
@PluginFactory public static EventRootObjectKeyInterceptor getInstance()
public Object processTemplateBeforeResolverInjection(EventResolverContext context, Object node)
TemplateResolverInterceptor
TemplateResolvers.ofTemplate(TemplateResolverContext, String)
starts injecting resolvers.
This is the right place to introduce, say, contextual additional fields.
processTemplateBeforeResolverInjection
in interface TemplateResolverInterceptor<LogEvent,EventResolverContext>
node
- the root object of the read templateCopyright © 1999-2023 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.