On Sun, 2004-03-07 at 11:06, Zoran Vasiljevic wrote:

> Oh, misunderstanding...

Zoran, no I think I understood. From what I understand, each request has
a current url, used by the filter/request proc code to handle requests.

Your suggestion is to add tcl channel support to ns_log, with a new
command to change this on the fly.

However, as your example proves, this requires editing all your files
where you want to debug. This is the same issue we have now, logging for
specific areas 1, gets mixed with everything else and 2 requires editing
your files.

AOLserver has a nice trie structure (generic, but used to store
registered procs and filters). The same structure could be used to
handle logging. A tcl api might look similar to the register_proc api:

set fd [open ...]
ns_register_logger debug /my/buggy/app/* $fd
ns_register_logger notice /* [open /tmp/server.log a+]

Maybe too much work for what you want?

tom jackson


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to