Class SafeRequestParameterConverter
java.lang.Object
ch.qos.logback.core.pattern.Converter<E>
ch.qos.logback.core.pattern.FormattingConverter<E>
ch.qos.logback.core.pattern.DynamicConverter<ch.qos.logback.access.spi.IAccessEvent>
ch.qos.logback.access.pattern.AccessConverter
io.dropwizard.request.logging.layout.SafeRequestParameterConverter
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle
public class SafeRequestParameterConverter
extends ch.qos.logback.access.pattern.AccessConverter
A safe version of
RequestParameterConverter which works
with async appenders. It loads request parameters from a cached map rather than trying to load
request data from the original request which may be closed.-
Field Summary
Fields inherited from class ch.qos.logback.access.pattern.AccessConverter
QUESTION_CHAR, SPACE_CHARFields inherited from class ch.qos.logback.core.pattern.DynamicConverter
started -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ch.qos.logback.access.pattern.AccessConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextMethods inherited from class ch.qos.logback.core.pattern.DynamicConverter
getFirstOption, getOptionList, isStarted, setOptionList, stopMethods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, writeMethods inherited from class ch.qos.logback.core.pattern.Converter
getNext, setNext
-
Constructor Details
-
SafeRequestParameterConverter
public SafeRequestParameterConverter()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfacech.qos.logback.core.spi.LifeCycle- Overrides:
startin classch.qos.logback.core.pattern.DynamicConverter<ch.qos.logback.access.spi.IAccessEvent>
-
convert
- Specified by:
convertin classch.qos.logback.core.pattern.Converter<ch.qos.logback.access.spi.IAccessEvent>
-