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, 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 details. As to how you
> can 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.
Damn. Missed it by *that* much. That's too simple. Thank you.
Will