shared
Class InitLog4j

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by shared.InitLog4j
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class InitLog4j
extends javax.servlet.http.HttpServlet

Servlet that initialises log4j

See Also:
Serialized Form

Constructor Summary
InitLog4j()
           
 
Method Summary
 void init()
          Initialise the loggers when the servlet is loaded into memory
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitLog4j

public InitLog4j()
Method Detail

init

public void init()
Initialise the loggers when the servlet is loaded into memory

The default logger is set to Level.ERROR. A logger for org.apache.commons.beanutils is created and set to Level.DEBUG. This is useful to track errors when the automatic copy from the request to the bean fails.

Overrides:
init in class javax.servlet.GenericServlet