Class PatternMaskingMessageJsonProvider
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
net.logstash.logback.composite.AbstractJsonProvider<Event>
net.logstash.logback.composite.AbstractFieldJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
dev.vality.adapter.flow.lib.logback.mask.PatternMaskingMessageJsonProvider
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware,net.logstash.logback.composite.FieldNamesAware<net.logstash.logback.fieldnames.LogstashFieldNames>,net.logstash.logback.composite.JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
public class PatternMaskingMessageJsonProvider
extends net.logstash.logback.composite.AbstractFieldJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
implements net.logstash.logback.composite.FieldNamesAware<net.logstash.logback.fieldnames.LogstashFieldNames>
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors Constructor Description PatternMaskingMessageJsonProvider() -
Method Summary
Modifier and Type Method Description voidaddMaskPattern(String maskPattern)voidsetFieldNames(net.logstash.logback.fieldnames.LogstashFieldNames fieldNames)voidwriteTo(com.fasterxml.jackson.core.JsonGenerator generator, ch.qos.logback.classic.spi.ILoggingEvent event)Methods inherited from class net.logstash.logback.composite.AbstractFieldJsonProvider
getFieldName, setFieldNameMethods inherited from class net.logstash.logback.composite.AbstractJsonProvider
isStarted, prepareForDeferredProcessing, start, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
PatternMaskingMessageJsonProvider
public PatternMaskingMessageJsonProvider()
-
-
Method Details
-
addMaskPattern
-
writeTo
public void writeTo(com.fasterxml.jackson.core.JsonGenerator generator, ch.qos.logback.classic.spi.ILoggingEvent event) throws IOException- Specified by:
writeToin interfacenet.logstash.logback.composite.JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>- Throws:
IOException
-
setFieldNames
public void setFieldNames(net.logstash.logback.fieldnames.LogstashFieldNames fieldNames)- Specified by:
setFieldNamesin interfacenet.logstash.logback.composite.FieldNamesAware<net.logstash.logback.fieldnames.LogstashFieldNames>
-