Anthing that derives from javax.servlet.GenericServlet ( ie HttpServlet )
can call the
log method directly.
-Original Message-
From: Will England [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 7:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Logging, server.xml and so on
On Tue
On Tue, 17 Apr 2001, Sam Newman wrote:
> To get stuff into the log, you have to do the following (I'm assuming your
> in a servlet at the time!)
>
> this.getServletContext().log("msg");
> or
> this.getServletContext().log("msg", exception);
>
> Check the API docs for HttpServletContext for more
an tailor this logging to reflect the debug level set for your context (ala
log4j), I don't know. This works a treat in all my stuff anyway.
sam
- Original Message -
From: "Will England" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 17,
Greetings!
After many days of searching and so on, I am still looking for information
on using the default logging built into Tomcat.
I am running Tomcat 3.2.1 under apache 1.3.12 on Solaris 2.7, with Java
1.3.
I have a servlet application set up that catches all the 'expected' errors
and logs