use of org.apereo.cas.logging.web.ThreadContextMDCServletFilter in project cas by apereo.
the class CasLoggingConfiguration method threadContextMDCServletFilter.
@Bean
public FilterRegistrationBean threadContextMDCServletFilter() {
final Map<String, String> initParams = new HashMap<>();
final FilterRegistrationBean bean = new FilterRegistrationBean();
bean.setFilter(new ThreadContextMDCServletFilter(ticketRegistrySupport, this.ticketGrantingTicketCookieGenerator));
bean.setUrlPatterns(Collections.singleton("/*"));
bean.setInitParameters(initParams);
bean.setName("threadContextMDCServletFilter");
bean.setOrder(0);
return bean;
}
Aggregations