|
In a message dated 3/8/2004 12:01:47 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:
Date: Sun, 7 Mar 2004 12:35:26 -0800 Hi,
Mapping method/url's to specific log files seems like a smart
idea. One problem: Examples above map only the url -- a weakness (or
strength depending on your perspective) is that the trie data structure (i.e,.
Ns_UrlSpecificSet) requires method and url so you'd have to ns_register_logger
GET, POST, etc. And, there's no wildcard option for the method. This
is probably something to change/fix given the new methods which are showing up
(PUT, DELETE, etc.)
Also, the ns_logctl command does have per-thread buffering capabilities --
you could wrap whatever you're doing with it, e.g., in ADP:
<%
ns_logctl hold; # begins buffering log messages in this thread alone
ns_adp_include myfile.adp
set msgs [ns_logctl peek]; # gets current buffered log messages
ns_logctl release; # disables buffer, flushes results to log
file
...send $msgs somewhere, perhaps over the network...
%>
Also, the server log fd is currently very carefully dup'ed to fd 1 & 2.
This captures dumb modules or API code which might carelessly chatter to stderr
or stdout.
-Jim
|
- Re: [AOLSERVER] ns_logctl expansion... Zoran Vasiljevic
- Re: [AOLSERVER] ns_logctl expan... Tom Jackson
- Re: [AOLSERVER] ns_logctl expan... Vlad Seryakov
- Re: [AOLSERVER] ns_logctl expansion? Tom Jackson
- Re: [AOLSERVER] ns_logctl expansion? Zoran Vasiljevic
- Re: [AOLSERVER] ns_logctl expansion? Tom Jackson
- Re: [AOLSERVER] ns_logctl expansion... Vlad Seryakov
- Re: [AOLSERVER] ns_logctl expansion... Zoran Vasiljevic
- Re: [AOLSERVER] ns_logctl expansion? Stephen Deasey
- Re: [AOLSERVER] ns_logctl expansion? Zoran Vasiljevic
- Re: [AOLSERVER] ns_logctl expansion? Jim Davidson
- Re: [AOLSERVER] ns_logctl expansion? Zoran Vasiljevic
- Re: [AOLSERVER] ns_logctl expansion? Andrew Piskorski
