org.springframework.web.util
Class Log4jConfigListener


public class Log4jConfigListener
implements ServletContextListener

Bootstrap listener for custom Log4J initialization in a web environment. Simply delegates to Log4jWebConfigurer.

This listener should be registered before ContextLoaderListener in web.xml, when using custom Log4J initialization.

For Servlet 2.2 containers and Servlet 2.3 ones that do not initalize listeners before servlets, use Log4jConfigServlet. See the ContextLoaderServlet javadoc for details.

Author:
Juergen Hoeller
Since: 13.03.2003
See Also: Log4jWebConfigurer, Log4jConfigServlet, ContextLoaderListener, ContextLoaderServlet, WebAppRootListener

Method Summary
 voidcontextDestroyed(ServletContextEvent event)
           
 voidcontextInitialized(ServletContextEvent event)
           

Method Detail

contextDestroyed

public void contextDestroyed(ServletContextEvent event)

contextInitialized

public void contextInitialized(ServletContextEvent event)