--
Maybe the mailing list archive would have helped?
So here's another version:
> In the JSDK api in HttpServlet there's the method getServletContext()
> which returns the current context. The ServletConext then has a method
> called log(), and guess what, this is the thing you need!
> It works similar to System.out.println(), the famous debugging method
> for the real experienced java programmer ;-)
>
> To make sure that you log file contains the log ouput add/change the
> following in jserv.properties:
> log.file=/usr/local/jserv/logs/jserv.trace
> log.channel.servletLog=true <-- THIS IS THE MOST IMPORTANT ENTRY!!!!!!
>
> Make sure that log.file is fully qualified, otherwise you might get in
> troubles.
> Of course, set the log.file to what you nedd!
>
> The other log.channel.* params are for debugging jserv itself, so maybe
> you wish to disable them, but some of them are still usefull.
Sam Couter wrote:
>
> --
>
> I must be doing something very wrong, but I can't work out what.
>
> I can't get any logging happening.
>
> System.out seems to go to /dev/null unless I start JServ manually. It
> used to (JServ 1.0b2) go to Apache's error_log, but not any more. Nothing
> appears in Apache's error_log or jserv_log. It doesn't end up on my console
> (after having started Apache), despite what it says in the Faq-O-Matic.
> Starting it manually results in System.out being my cosole, as I'd expect.
>
> I have all the logging options turned on in the zone properties file.
> The log file as cut 'n' pasted from the jserv-status page for the zone,
> so no typos, is:
> /onestep/projects/onestep/jserv.log
>
> The server is running under my UID. I have write access to the file.
> It's mode 777:
> [eddie@onestep onestep]$ ls -l /onestep/projects/onestep/jserv.log
> -rw-rw-rw- 1 eddie staff 0 Jun 24 16:26 /onestep/projects/onestep/jserv.log
>
> The best I can find in the mailing list archives is:
>
> > Subject: ServletContext.log()
> > From: Brad Andrews <[EMAIL PROTECTED]>
> > Date: Thu, 24 Jun 1999 20:18:52 -0700
> >
> > Hi All - Does anyone know if the logging features of Java Servlets are
> > supported by JServ 1.0? I tried it today and it didn't write anything
> > to the logs, jserv or error. Here's the methods I was using:
>
> Which is exactly one of the problems I was having (no logging).
>
> The response follows:
>
> > Subject: Re: ServletContext.log()
> > From: "jon *" <[EMAIL PROTECTED]>
> > Date: Thu, 24 Jun 1999 23:39:59 -0700
> >
> > > Hi All - Does anyone know if the logging features of Java Servlets are
> > > supported by JServ 1.0? I tried it today and it didn't write anything
> > > to the logs, jserv or error. Here's the methods I was using:
> >
> > this is discussed in detail in the faq.
> >
> > -jon
>
> Which is bogus. It's not in the Faq-O-Matic. I looked. I used the search
> link. It couldn't find it either.
> (BTW, the mailing list archive search thingy is broken - it gives me zero
> results for everything)
>
> I've never had logging working under Apache JServ, from about 0.9.7 or so.
> I've seen others with the same problem, but I've never seen the solution.
> I've had a look at the code, but it's a fair bit of code to go through to
> familiarise myself with, and I can't see the problem yet.
> Can anyone shed some light please?
> --
> Sam Couter [EMAIL PROTECTED]
> Internet Engineer
> tSA Consulting
>
> --
> --------------------------------------------------------------
> 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]
--
Guenther Wieser
creative-it/Guenther Wieser Software KEG
Student of Telematik at Graz University of Technology
http://www.creative-it.com mailto:[EMAIL PROTECTED]
-> In A World Without Walls And Fences, Who Needs Windows And Gates? <-
--
--------------------------------------------------------------
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]