----- Original Message -----
From: Robert Merrill <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 1999 9:26 PM
Subject: Re: Logging to jserv.log


> 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

You also have to have the right permissions set for /var/tmp and
/var/tmp/jserv.log.
Check your Apache logs if there have been and file permission problems.
Check with "ps aux" which user is running the httpd and make the files
writable by this user.

- Andreas




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