1. Everyone on the list is a volunteer.
   They answer your questions if they feel like doing so.
   That's just the way it is.
   Help yourself.  Help others.  Give more than you take.

2. No one likes to listen to your complaints.
   Your disappointment should be aimed at your own lack of
   understanding of the open source community.
   Please try to be a better citizen.

3. I found some information on logging in the "server.xml"
   file in Tomcat 3.2 Beta 4.  An excerpt of the server.xml
   and some fragments of some of my logs are included below
   to help you see what logging on my system is like.

That's the best I can do for you in the time I've got.

Stephen

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

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

    <!--

    Logging:

         Logging in Tomcat is quite flexible; we can either have a log
         file per module (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.  Right now there are
         three standard log streams, "tc_log", "servlet_log", and
         "JASPER_LOG".

         Path:

         The file to which to output this log, relative to
         TOMCAT_HOME.  If you omit a "path" value, then stderr or
         stdout will be used.

         Verbosity:

         Threshold for which types of messages are displayed in the
         log.  Levels are inclusive; that is, "WARNING" level displays
         any log message marked as warning, error, or fatal.  Default
         level is WARNING.

         verbosityLevel values can be:
            FATAL
            ERROR
            WARNING
            INFORMATION
            DEBUG

         Timestamps:

         By default, logs print a timestamp in the form "yyyy-MM-dd
         hh:mm:ss" in front of each message.  To disable timestamps
         completely, set 'timestamp="no"'. To use the raw
         msec-since-epoch, which is more efficient, set
         'timestampFormat="msec"'.  If you want a custom format, you
         can use 'timestampFormat="hh:mm:ss"' following the syntax of
         java.text.SimpleDateFormat (see Javadoc API).  For a
         production environment, we recommend turning timestamps off,
         or setting the format to "msec".

         Custom Output:

         "Custom" means "normal looking".  "Non-custom" means
         "surrounded with funny xml tags".  In preparation for
         possibly disposing of "custom" altogether, now the default is
         'custom="yes"' (i.e. no tags)

         Per-component Debugging:

         Some components accept a "debug" attribute.  This further
         enhances log output.  If you set the "debug" level for a
         component, it may output extra debugging information.
    -->

    <!-- if you don't want messages on screen, add the attribute
            path="logs/tomcat.log"
         to the Logger element below
    -->
    <Logger name="tc_log"
            verbosityLevel = "INFORMATION"
    />

    <Logger name="servlet_log"
            path="logs/servlet.log"
    />

    <Logger name="JASPER_LOG"
            path="logs/jasper.log"
            verbosityLevel = "INFORMATION" />

Here are some samples from my logs to help you understand the type of
information logged.

raven[spadkins]:/usr/ov/devel/tomcat/logs> head *
==> jasper.log <==
2000-10-25 11:23:54 - Scratch dir for the JSP engine is:
/usr/ov/devel/tomcat/work/localhost_8080%2Fexamples
2000-10-25 11:23:54 - IMPORTANT: Do not modify the generated servlets
2000-10-25 11:46:06 - JspEngine --> /jsp/snp/snoop.jsp
2000-10-25 11:46:06 -        ServletPath: /jsp/snp/snoop.jsp
2000-10-25 11:46:06 -           PathInfo: null
2000-10-25 11:46:06 -           RealPath:
/usr/ov/devel/tomcat/webapps/examples/jsp/snp/snoop.jsp
2000-10-25 11:46:06 -         RequestURI: /examples/jsp/snp/snoop.jsp
2000-10-25 11:46:06 -        QueryString: null
2000-10-25 11:46:06 -     Request Params:
2000-10-25 11:46:06 - Classpath according to the Servlet Engine is:
/usr/ov/devel/tomcat/webapps/examples/WEB-INF/classes

==> servlet.log <==
2000-10-25 11:23:54 - path="/examples" :jsp: init
2000-10-25 11:23:55 - path="/admin" :jsp: init
2000-10-25 11:23:55 - path="" :jsp: init
2000-10-25 11:23:55 - path="/test" :jsp: init
2000-10-25 11:46:06 - path="/examples" :jsp: init
2000-10-25 11:46:47 - path="/examples" :jsp: init

==> tomcat.log <==
2000-10-25 11:23:54 - ContextManager: Adding context Ctx( /examples )
2000-10-25 11:23:54 - ContextManager: Adding context Ctx( /admin )
2000-10-25 11:23:54 - ContextManager: Adding context Ctx(  )
2000-10-25 11:23:54 - ContextManager: Adding context Ctx( /test )
2000-10-25 11:23:55 - PoolTcpConnector: Starting HttpConnectionHandler on 8081
2000-10-25 11:23:55 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8001




At 03:22 PM 10/26/00 -0400, you wrote:
>The tomcat docs and this mailing list has been a huge disapointment in
>getting help.
>
>All I want to do is setup detail loging, is there any docs on the
>subject?
>
>
>Steven Rice
>
>

Reply via email to