we implemented a simple debugging interface that is also used for
logging.  our servlet creates a 'debugutilities' object that has two
options (print stuff to sys.err, print stuff to log), and a whole bunch
of print methods to handle teh diff types.  We then just pass this
object all around, and when we debug we turn on the print stuff to
sys.err, or if we want it just to log, we turn that one on.  it is a
fairly trivial implementation.

Raghunandan Havaldar wrote:

> as far as I know, I get a NullpointerException when
> a servlet tries to 'log', cause the GenericServlet
> created by the JServ engine is somehow 'not initializing'
> the GenericServlet in the 'expected' manner.
>
> This is one reason, I have toughing it out trying to
> 'log' info to either System.out stream or a default
> log stream.
>
> any ideas anybody ?. - especially at the Apache JServ team.
>
> Raghu
> [EMAIL PROTECTED]




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to