Class AccessLogInterceptorService
java.lang.Object
com.predic8.membrane.core.interceptor.log.AccessLogInterceptorService
-
Constructor Summary
ConstructorsConstructorDescriptionAccessLogInterceptorService(String dateTimePattern, String defaultValue, List<AdditionalVariable> additionalVariables, boolean excludePayloadSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles access logging with custom MDC parameters MDC often uses ThreadLocals to archive thread safety.
-
Constructor Details
-
AccessLogInterceptorService
public AccessLogInterceptorService(String dateTimePattern, String defaultValue, List<AdditionalVariable> additionalVariables, boolean excludePayloadSize)
-
-
Method Details
-
handleAccessLogging
Handles access logging with custom MDC parameters MDC often uses ThreadLocals to archive thread safety. Using thread pools and reusing borrowed threads could lead to leftover MDC data to be thread pool safe, we simply clear the MDC after usage- Parameters:
exc- - The HTTP exchange
-