Logging Interceptor
Learn Logging Interceptor (Interceptors, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Logging interceptor : an interceptor that logs every request (method, URL, status, duration) in one place instead of in each controller. Log the start in preHandle() and the result in afterCompletion() , where the status and the exception are known. Use a unique request id in the log lines so you can follow one request through many log entries.