net.sourceforge.hiveutils.web.logging
Class LoggingInitListener

java.lang.Object
  extended by net.sourceforge.hiveutils.web.logging.LoggingInitListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class LoggingInitListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

ServletContextListener that will initialize log4j at web appalication start.

It must be setup in web.xml as <listener>. Following parameters are given as <context-param> in web.xml:

Please note that currently only xml configuration files are supported.

Author:
Jean-Francois Poilpret

Constructor Summary
LoggingInitListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent evt)
           
 void contextInitialized(javax.servlet.ServletContextEvent evt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingInitListener

public LoggingInitListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent evt)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent evt)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener