title: Logging interceptor is not working
body: <p>The issue is that it seems like interceptor is not called.</p>
  
  <pre><code>@Component
  public class LoggingInterceptor extends HandlerInterceptorAdapter {
  
      private static final Logger LOGGER = LogManager.getLogger(MethodHandles.lookup().lookupClass());
  
      @Overridegre
      public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object object, Exception arg3)
              throws Exception {
          LOGGER.info("Request Completed!");
      }
  
      @Override
      public void postHandle(HttpServletRequest request, HttpServletResponse response, Object object, ModelAndView model)
              throws Exception {
          LOGGER.info("Method executed");
      }
  
      @Override
      public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) throws Exception {
          LOGGER.info("Before process request");
          return true;
      }
  
  }
  
  @Configuration
  public class WebConfig extends WebMvcConfigurerAdapter {
  
      @Autowired
      LoggingInterceptor loggingInterceptor;
  
      @Override
      public void addInterceptors(InterceptorRegistry registry) {
          registry.addInterceptor(loggingInterceptor);
      }
  }
  </code></pre>
  
  <p>I've found examples but they are not working !</p>
  
  <p>I'm trying to add start and end log and also performance log. Any idea please ?</p>
  
  <pre><code>@SpringBootApplication(scanBasePackages = { "com.sofelite.proj.controllers" })
  public class ProjApplication extends SpringBootServletInitializer {
  
      @Override
      protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
          return application.sources(GrentyApplication.class);
      }
  
      public static void main(String[] args) throws Exception {
          SpringApplication.run(GrentyApplication.class, args);
      }
  }
  </code></pre>
  
  <p>This is the Application class
  Please note that in com.sofelite.proj I have all application packages such as controllers and interceptors.</p>