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(ch.qos.logback.core.spi.ContextAware contextAware,
com.fasterxml.jackson.core.JsonFactory jsonFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOperation(AbstractJsonPatternParser.Operation operation) |
protected ch.qos.logback.core.pattern.PatternLayoutBase<Event> |
buildLayout(String format) |
protected abstract ch.qos.logback.core.pattern.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(ch.qos.logback.core.spi.ContextAware contextAware,
com.fasterxml.jackson.core.JsonFactory jsonFactory)
protected void addOperation(AbstractJsonPatternParser.Operation operation)
protected ch.qos.logback.core.pattern.PatternLayoutBase<Event> buildLayout(String format)
protected abstract ch.qos.logback.core.pattern.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 © 2019. All rights reserved.