Class AccessLogInterceptorService

java.lang.Object
com.predic8.membrane.core.interceptor.log.AccessLogInterceptorService

public class AccessLogInterceptorService extends Object
  • Constructor Details

    • AccessLogInterceptorService

      public AccessLogInterceptorService(String dateTimePattern, String defaultValue, List<AdditionalVariable> additionalVariables, boolean excludePayloadSize)
  • Method Details

    • handleAccessLogging

      public void handleAccessLogging(Exchange exc)
      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