Created
May 1, 2021 18:40
-
-
Save boudhayan-dev/a388f84b3a1fcc570856a4b73052dacc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AuditLogFilter implements Filter { | |
public static final Logger log = LoggerFactory.getLogger(AuditLogFilter.class); | |
@Override | |
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) | |
throws IOException, ServletException { | |
log.info("Manager Login Detected at {} ",Instant.now()); | |
chain.doFilter(request, response); | |
} | |
@Override | |
public void init(FilterConfig filterconfig) throws ServletException { | |
} | |
@Override | |
public void destroy() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment