use of org.apache.logging.log4j.web.Log4jServletContextListener in project cas by apereo.
the class CasWebAppConfiguration method log4jServletContextListener.
@Bean
public ServletListenerRegistrationBean log4jServletContextListener() {
final ServletListenerRegistrationBean bean = new ServletListenerRegistrationBean();
bean.setEnabled(true);
bean.setName("log4jServletContextListener");
bean.setListener(new Log4jServletContextListener());
return bean;
}
Aggregations