title: CommonsRequestLoggingFilter not logging when extending
body: <p>The following code does not log when I add in the override methods.
  If I comment them out, it does log when I issue a logger.error() in the ControllerAdvice.
  Using the following property in application.properties.
  logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=TRACE<br />
  Using Spring Boot 2.4.5</p>
  <pre><code>@Bean 
  public CommonsRequestLoggingFilter logFilter() {        
       CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter()
       {
           @Override
           protected void beforeRequest(HttpServletRequest request, String message) {
               logger.info(message);
           }
  
           @Override
           protected void afterRequest(HttpServletRequest request, String message) {
               logger.info(message);
           }
  
          };
  
          filter.setIncludeClientInfo(true);
          filter.setIncludeHeaders(true);
          filter.setIncludePayload(true);
          filter.setIncludeQueryString(true);
          filter.setBeforeMessagePrefix(&quot;Request started =&gt; &quot;);
          filter.setAfterMessagePrefix(&quot;Request ended =&gt; &quot;);
          
          
          return filter;
      
  }
  </code></pre>