Event
- - type of the event (ILoggingEvent, IAccessEvent)public abstract class AbstractJsonPatternParser<Event> extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
OPERATION_PATTERN |
Constructor and Description |
---|
AbstractJsonPatternParser(ContextAware contextAware,
JsonFactory jsonFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
addOperation(AbstractJsonPatternParser.Operation operation) |
protected PatternLayoutBase<Event> |
buildLayout(String format) |
protected abstract PatternLayoutBase<Event> |
createLayout() |
boolean |
isOmitEmptyFields()
When true, fields whose values are considered empty (
isEmptyValue(Object) })
will be omitted from json output. |
protected AbstractJsonPatternParser.LayoutValueGetter<Event> |
makeLayoutValueGetter(String data) |
NodeWriter<Event> |
parse(String pattern) |
void |
setOmitEmptyFields(boolean omitEmptyFields)
When true, fields whose values are considered empty (
isEmptyValue(Object) })
will be omitted from json output. |
public static final Pattern OPERATION_PATTERN
public AbstractJsonPatternParser(ContextAware contextAware, JsonFactory jsonFactory)
protected void addOperation(AbstractJsonPatternParser.Operation operation)
protected PatternLayoutBase<Event> buildLayout(String format)
protected abstract PatternLayoutBase<Event> createLayout()
protected AbstractJsonPatternParser.LayoutValueGetter<Event> makeLayoutValueGetter(String data)
public NodeWriter<Event> parse(String pattern)
public boolean isOmitEmptyFields()
isEmptyValue(Object)
})
will be omitted from json output.public void setOmitEmptyFields(boolean omitEmptyFields)
isEmptyValue(Object)
})
will be omitted from json output.Copyright © 2020. All rights reserved.