public final class EventResolverContext extends Object
TemplateResolverContext
specialized for LogEvent
s.EventResolver
,
EventResolverFactory
Modifier and Type | Class and Description |
---|---|
static class |
EventResolverContext.Builder |
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset() |
Configuration |
getConfiguration() |
Class<EventResolverContext> |
getContextClass() |
JsonTemplateLayout.EventTemplateAdditionalField[] |
getEventTemplateAdditionalFields() |
String |
getEventTemplateRootObjectKey() |
JsonWriter |
getJsonWriter() |
int |
getMaxStringByteCount() |
RecyclerFactory |
getRecyclerFactory() |
Map<String,EventResolverFactory> |
getResolverFactoryByName() |
List<EventResolverInterceptor> |
getResolverInterceptors() |
String |
getStackTraceElementTemplate() |
EventResolverStringSubstitutor |
getSubstitutor() |
String |
getTruncatedStringSuffix() |
boolean |
isLocationInfoEnabled() |
boolean |
isStackTraceEnabled() |
static EventResolverContext.Builder |
newBuilder() |
default Object |
processTemplateBeforeResolverInjection(Object node)
Process the read template before compiler (i.e.,
TemplateResolvers.ofTemplate(TemplateResolverContext, String)
starts injecting resolvers. |
public final Class<EventResolverContext> getContextClass()
public Configuration getConfiguration()
public Map<String,EventResolverFactory> getResolverFactoryByName()
public List<EventResolverInterceptor> getResolverInterceptors()
public EventResolverStringSubstitutor getSubstitutor()
public Charset getCharset()
public JsonWriter getJsonWriter()
public RecyclerFactory getRecyclerFactory()
public int getMaxStringByteCount()
public String getTruncatedStringSuffix()
public boolean isLocationInfoEnabled()
public boolean isStackTraceEnabled()
public String getStackTraceElementTemplate()
public String getEventTemplateRootObjectKey()
public JsonTemplateLayout.EventTemplateAdditionalField[] getEventTemplateAdditionalFields()
public static EventResolverContext.Builder newBuilder()
public Object processTemplateBeforeResolverInjection(Object node)
TemplateResolvers.ofTemplate(TemplateResolverContext, String)
starts injecting resolvers.
This is the right place to introduce, say, contextual additional fields.
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.