uk.ac.ebi.intact.application.commons.util
Class LoggingInitServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--uk.ac.ebi.intact.application.commons.util.LoggingInitServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class LoggingInitServlet
extends javax.servlet.http.HttpServlet

Inititialize the Logger with the log4J properties file. Created by Samuel Kerrien (skerrien@ebi.ac.uk)

See Also:
Serialized Form

Constructor Summary
LoggingInitServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void init()
          You should include the folowing lines in your web.xml file to load that servlet on Tomcat startup.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, 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

LoggingInitServlet

public LoggingInitServlet()
Method Detail

init

public void init()
You should include the folowing lines in your web.xml file to load that servlet on Tomcat startup.

<servlet>
<servlet-name>logging-init</servlet-name>
<servlet-class>uk.ac.ebi.intact.application.application.commons.logging.LoggingInitServlet</servlet-class>
<init-param>
<param-name>log4j-init-file</param-name>
<param-value>/WEB-INF/classes/config/log4j.properties</param-value>
</init-param>

<load-on-startup>1</load-on-startup>
</servlet>

Overrides:
init in class javax.servlet.GenericServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
Overrides:
doGet in class javax.servlet.http.HttpServlet


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk