Class HeadersLogFilter

All Implemented Interfaces:
RequestAccess

public class HeadersLogFilter extends AbstractLoggingFilter
Use this filter to log HTTP request (and response) headers to a log system.
Author:
Igor Polevoy
  • Constructor Details

    • HeadersLogFilter

      public HeadersLogFilter(AbstractLoggingFilter.Level level)
      Creates a filter with preset log level. By default, response headers are not printed.
      Parameters:
      level - log level
    • HeadersLogFilter

      public HeadersLogFilter(AbstractLoggingFilter.Level level, boolean printResponseHeaders)
      Creates a filter with preset log level.
      Parameters:
      level - log level
      printResponseHeaders - true to print response headers too.
    • HeadersLogFilter

      public HeadersLogFilter()
      Creates a filter with default "INFO" level. By default, response headers are not printed.
  • Method Details