use of org.finra.herd.ui.RequestLoggingFilter in project herd by FINRAOS.
the class WarInitializer method initRequestLoggingFilter.
/**
* Initializes the request logging filter that logs all incoming REST requests.
*
* @param servletContext the servlet context.
*/
protected void initRequestLoggingFilter(ServletContext servletContext) {
// Add a filter that logs incoming HTTP request and configure flags to enable more detailed logging.
FilterRegistration.Dynamic filterRegistration = servletContext.addFilter("requestLoggingFilter", new RequestLoggingFilter());
filterRegistration.addMappingForUrlPatterns(null, true, "/rest/*");
}
Aggregations