A filter is implemented to log request details. Where should this logging take place in the filter's methods?

  • destroy()
  • doFilter()
  • filterConfig()
  • init()
The logging of request details in a filter should take place within the doFilter() method, which is called for each request and allows processing of the request and response.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *