Skip to main content

Request Logging Filter

Learn Request Logging Filter (Filters, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Request logging filter is a filter that records method, URL, status and duration of every request in one central place. Spring built-in : CommonsRequestLoggingFilter logs request details at DEBUG level of its own logger. Custom version : extend OncePerRequestFilter , measure time around chain.doFilter and log after the response is produced.

More lessons in Filters