|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.apache.jackrabbit.j2ee.LoggingServlet
public class LoggingServlet
This Class implements a servlet that is used for initializing the log4j facitilies for the containing webapp. since all classes in a webapp share the same Log4J repository, this servlet offers a centralized mechanism to configure the different loggers.
please note, that Log4J holds its logging repository in static class variables, so the configuration spans all classes using the same classloader hierarchy. in a typical j2ee 4 classloaders are provided by the appserver: a shared, a server, a container and an application classloader:
Field Summary | |
---|---|
static String |
INIT_PARAM_LOG4J_CONFIG
The init param for the log4j configuration. this can either point to a resource inside the application or a filepath. if the filename ends with ".xml", the DOMConfigurator is used to configure Log4J, otherwise
the PropertyConfigurator is used. |
Constructor Summary | |
---|---|
LoggingServlet()
|
Method Summary | |
---|---|
void |
init()
|
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 |
Field Detail |
---|
public static final String INIT_PARAM_LOG4J_CONFIG
DOMConfigurator
is used to configure Log4J, otherwise
the PropertyConfigurator
is used.
Constructor Detail |
---|
public LoggingServlet()
Method Detail |
---|
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |