<?xml version="1.0" encoding="ISO-8859-1"?>

<Server>
    <!-- Debug low-level events in XmlMapper startup -->
    <xmlmapper:debug level="2" />

    <!-- This is quite flexible; we can either have a log file per
         module in Tomcat (example: ContextManager) or we can have
         one for Servlets and one for Jasper, or we can just have
         one tomcat.log for both Servlet and Jasper.

         If you omit "path" there, then stderr should be used.

         verbosityLevel values can be:
            FATAL
            ERROR
            WARNING
            INFORMATION
            DEBUG
         -->

    <Logger name="tc_log"
            path="/home/nsadmin/log/david-tomcat.log"
            customOutput="yes" />

    <Logger name="servlet_log"
            path="/home/nsadmin/log/david-servlet.log"
            customOutput="yes" />

    <Logger name="JASPER_LOG"
            path="/home/nsadmin/log/david-jasper.log"
            verbosityLevel = "INFORMATION" />

    <!-- Set the "home" attribute to point to where your in-process tomcat
         configuration is located. ContextManager home is the base directory
         for contexts, webapps/ and work/
    -->
    <ContextManager debug="2" workDir="work">
        <!-- ContextInterceptor className="org.apache.tomcat.context.LogEvents" / -->
        <ContextInterceptor className="org.apache.tomcat.context.AutoSetup" />
        <ContextInterceptor className="org.apache.tomcat.context.DefaultCMSetter" />
        <ContextInterceptor className="org.apache.tomcat.context.WorkDirInterceptor" />
        <ContextInterceptor className="org.apache.tomcat.context.WebXmlReader" />
        <ContextInterceptor className="org.apache.tomcat.context.LoadOnStartupInterceptor" />
        <!-- Request processing -->
        <RequestInterceptor className="org.apache.tomcat.request.SimpleMapper" debug="0" />
        <RequestInterceptor className="org.apache.tomcat.request.SessionInterceptor" />
        <RequestInterceptor className="org.apache.tomcat.request.SecurityCheck" />
        <RequestInterceptor className="org.apache.tomcat.request.FixHeaders" />

        <!--
             JNI connector, make sure that you update the native_lib
             Parameter to point to your jni_connect.dll
         -->
        <Connector className="org.apache.tomcat.service.JNIEndpointConnector">
            <Parameter name="native_lib" value="/home/nsadmin/bin/nstomcat.so"/>
        </Connector>

        <!-- example - how to override AutoSetup actions -->
        <Context path="/servlet" docBase="/web/david/packages/chat/servlet" debug="0" reloadable="true" >
        </Context>

    </ContextManager>
</Server>

