Skip to content

Instantly share code, notes, and snippets.

@boudhayan-dev
Created May 1, 2021 18:40
Show Gist options
  • Save boudhayan-dev/a388f84b3a1fcc570856a4b73052dacc to your computer and use it in GitHub Desktop.
Save boudhayan-dev/a388f84b3a1fcc570856a4b73052dacc to your computer and use it in GitHub Desktop.
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