System.out replaced with Logger statements [BAEL-1302]

This commit is contained in:
kartiksingla 2018-08-24 11:36:57 +05:30
parent 26721073f9
commit 878ee1b2d5
1 changed files with 5 additions and 1 deletions

View File

@ -10,11 +10,15 @@ import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component("loggingFilter")
public class CustomFilter implements Filter {
private static Logger LOGGER = LoggerFactory.getLogger(CustomFilter.class);
@Override
public void init(FilterConfig config) throws ServletException {
}
@ -23,7 +27,7 @@ public class CustomFilter implements Filter {
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
System.out.println("Request Info : " + req);
LOGGER.info("Request Info : " + req);
chain.doFilter(request, response);
}