I use :
        log("The program experienced...");

The message will be written to jserv.log file.

the following are some information in jserv.properties file :

# Enable/disable Apache JServ log.
# WARNING: logging is a very expensive operation in terms of
performance. You
# should reduced the generated log to a minumum or even disable if fast 
# execution is an issue. Note that if all log channels (see below) are
enabled, 
# the log may become really big since each servlet request may generate
many Kb
# of log. Some log channels are mainly for debugging purposes and should
# be disabled in a production environment.
# Syntax: log=[true,false] (boolean)
# Default: true
log=true

Also, if your IDE tool is VC 3.0, you should be able to debug servlets
instead of writing 
error into log file.

Mengpei


-----Original Message-----
From: PAUL J THOMPSON [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 28, 1999 9:12 AM
To: Java Apache Users List
Subject: Howto? Jserv and servlet error messages.


Question:  I have been having trouble debugging my servlets because of
the lack of any stdout or stderr.  Is there some way that you can write
error messages to the jserv log file?  Something like:

        out.println("The program experienced a major fubar here!");

So that it would be a little easier to keep track of what is going on. 
Otherwise, debugging can be quite the pain in the rear.

Thanks,
Paul J Thompson


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


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

Reply via email to