com.pow2.resources
Class Log4jInit
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.pow2.resources.InitServlet
com.pow2.resources.Log4jInit
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
- public class Log4jInit
- extends InitServlet
Log4J init servlet.
Configure and initialize Log4j defining the following servlet
into the web.xml file of your web-application.
<servlet>
<servlet-name>log4j-init</servlet-name>
<servlet-class>com.pow2.resources.Log4jInit</servlet-class>
<init-param>
<param-name>log4j-init-file</param-name>
<param-value>WEB-INF/log4j.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
See
for further details.
- See Also:
- Serialized Form
Method Summary |
void |
init()
Configure Log4J using the configuration file whose path is set
by the log4j-init-file parameter
of the web.xml file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Log4jInit
public Log4jInit()
init
public void init()
throws ServletException
- Configure Log4J using the configuration file whose path is set
by the
log4j-init-file
parameter
of the web.xml
file.
- Throws:
ServletException
Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.