W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1998

Re: Logging

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 26 Oct 1998 14:43:14 +0100 (MET)
To: Jeff Van Epps <lordbah@lordbah.com>
cc: www-jigsaw@w3.org
Message-ID: <Pine.GSO.4.05.9810261411570.8051-100000@tarantula.inria.fr>
On Mon, 26 Oct 1998, Jeff Van Epps wrote:

> I have kind of the opposite problem - log files are being generated, but
> not timely enough and not containing the information I need. There is a
> servlet which doesn't seem to be doing anything at all according to the
> logs, even though tracing is on (other servlets work fine). How can I get
> the logs to flush to disk after each line is written? (I've already set the
> buffer to its lowest value, 1024)

Well, the current logger bufferizes the log entries, for performance sake.
If you want to have a logger that write asap the information you have to
create a new logger that fits your need,
see org.w3c.jigsaw.http.CommonLogger as an example.
in     public void log (Request request, Reply reply, int nbytes, long
duration) {

As you have the Request and Reply object, the byte sent and the duration,
you can log exactly what you want!

> Also, is there a way to associate servlets with jar files instead of class
> files, and have auto-reload work for jars?

Not for now...

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Monday, 26 October 1998 08:43:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:25 UTC