@@ -0,0 +1,1478 @@
+package innovimax.mixthem.rest.filters;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.servlet.Filter;%0Aimport javax.servlet.FilterChain;%0Aimport javax.servlet.FilterConfig;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.ServletRequest;%0Aimport javax.servlet.ServletResponse;%0Aimport javax.servlet.http.HttpServletRequest;%0A%0Aimport org.apache.log4j.ConsoleAppender;%0Aimport org.apache.log4j.Level;%0Aimport org.apache.log4j.Logger;%0Aimport org.apache.log4j.PatternLayout;%0A%0Apublic class LoggingFilter implements Filter %7B%0A%0A%09private static Logger logger = Logger.getLogger(LoggingFilter.class);%0A%0A    @Override%0A    public void init(FilterConfig filterConfig) throws ServletException %7B%0A%09%09//PatternLayout layout = new PatternLayout(%22%25d%7Byyyy-MM-dd HH:mm:ss%7D %5B%25-5p%5D (%25F:%25M:%25L) %25m%25n%22);%0A%09%09PatternLayout layout = new PatternLayout(%22%25d%7Byyyy-MM-dd HH:mm:ss%7D %5B%25-5p%5D Mixthem %25m%25n%22);%0A%09%09ConsoleAppender appender = new ConsoleAppender(layout);%0A%09%09logger.addAppender(appender);%0A%09%09logger.setLevel(Level.DEBUG);%0A%09%7D%0A%0A    @Override%0A    public void destroy() %7B%7D%0A%0A    @Override%0A    public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) %0A            throws IOException, ServletException %7B    %09%0A        String url = ((HttpServletRequest) request).getRequestURL().toString();     %0A    %09String host = ((HttpServletRequest) request).getRemoteHost();    %09%0A       %09logger.debug(url + %22(%22 + host + %22)%22);%0A        filterChain.doFilter(request, response);        %0A    %7D%0A%0A%7D%0A

Create LoggingFilter.java