package io.github.jordao76.quotes.filters;

import java.io.*;

import javax.servlet.*;
import javax.servlet.http.*;

import org.slf4j.*;
import org.springframework.stereotype.*;
import org.springframework.web.filter.*;

@Component
public class RequestLoggingFilter extends OncePerRequestFilter {

  private static final Logger LOGGER = LoggerFactory.getLogger(RequestLoggingFilter.class);

  @Override
  protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
      throws ServletException, IOException {

    filterChain.doFilter(request, response);

    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("HTTP {} for {} {}",
        value("status", response.getStatus()),
        value("method", request.getMethod()),
        value("endpoint", request.getRequestURI()));
    }

  }

  // note: later to be replaced,
  // see https://github.com/logstash/logstash-logback-encoder/tree/logstash-logback-encoder-4.7#loggingevent_custom_event
  private Object value(String key, Object value) {
    return value;
  }

}

@@ -304,15 +304,8 @@
 ate 
-static 
 fina
@@ -313,22 +313,22 @@
  Logger 
-LOGGER
+logger
  = Logge
@@ -350,34 +350,18 @@
 ger(
-RequestLoggingFilter.c
+getC
 lass
+()
 );%0A%0A
@@ -589,22 +589,22 @@
     if (
-LOGGER
+logger
 .isDebug
@@ -626,14 +626,14 @@
     
-LOGGER
+logger
 .deb

Change filter logger to instance field