title: CommonsRequestLoggingFilter not working in spring boot application
body: <p>I have added this @Bean to the class I have <code>main</code> function in</p>
  
  <pre><code>@Bean
      public CommonsRequestLoggingFilter requestLoggingFilter() {
           System.out.println("inside logging filter");
          CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
          loggingFilter.setIncludeClientInfo(true);
          loggingFilter.setIncludeQueryString(true);
          loggingFilter.setIncludePayload(true);
          loggingFilter.setIncludeHeaders(false);
          return loggingFilter;
      }
  </code></pre>
  
  <p>On application start,</p>
  
  <pre><code>inside logging filter
  </code></pre>
  
  <p>gets printed in console but I do not see any logging of requests when I call method from a <code>RestController</code>.</p>
  
  <p>Why is that? How do I fix it?</p>
  
  <p>I have already added</p>
  
  <pre><code>logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG
  </code></pre>
  
  <p>in <code>application.properties</code> file</p>