Request Logging
Learn Request Logging (Logging & Monitoring, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Request logging records what came in: method, URI, query string, selected headers, client address and optionally the body, so you can trace and debug traffic. Where : a servlet Filter (sees everything, including errors before MVC) or a HandlerInterceptor (sees only requests mapped to a handler). Quick start : register CommonsRequestLoggingFilter and set the logger org.springframework.web.filter.CommonsRequestLoggingFilter to DEBUG.