Eric,

> Does anyone have a means for logging to messages to the jserv.log file.
> 
> As I understand it:
> HttpServlet extends GenericServlet which implements ServletConfig which has
> getServletContext() which has log().
> 
> my init method is the following and my JServ logging uses jserv.log:
> 
> public void init(ServletConfig sc) throws ServletException
> {
>    super.init(sc);
>    sc.getServletContext().log("Initializing Servlet...");
> }
> 
> When I run the servlet I cant get any logging.
> 
> Can anyone help on this one???

Do you have the following somewhere in your jserv.properties file?

    log=true
    log.file=/var/tmp/jserv.log (or wherever you want the log to go)
    log.channel.servletLog=true

Robert
------
Robert T. Merrill     Software Engineer |  [EMAIL PROTECTED]
Berbee Information Networks Corporation |  (608) 288-3000x1608
5520 Research Park Dr.                  |  fax   288-3007
Madison, WI 53711

*** BERBEE - Putting the E in Business ***


--
--------------------------------------------------------------
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