Re: [PyCS-devel] question: better logging (per user)
Status: Alpha
Brought to you by:
myelin
|
From: Georg B. <gb...@mu...> - 2003-03-12 11:12:47
|
Hi! > I am unsatisfied on how PyCS currently does logging: it's all in one big > file and _before_ rewriting takes place. This makes up for very ugly > URLs when PyCS runs behind an Apache. My idea is to provide common log > file format per user, but _after_ rewriting takes place. I think I found it. pycs-rewrite_handler.py doesn't change the request.request field on rewriting. I changed this so that it now constructs a new request and put's it in there. This should work out nicely, as it doesn't change anything else in the system, just the field and code that depends on that (and that should - in my opinion - get the rewritten address). But this change (just checked it into CVS) might break stuff that depends on the access.log written by pycs. So if you have a log analyzer working on your pycs-generated access.log, things have changed and you won't find original URIs in there. I checked Phils make_referer.py script, that reads the apache log files and so isn't influenced by my change. But there might be other stuff outside. If you know of something that exists and might break with this change, notify me and I will have to make this logging behaviour configureable. Another change in CVS is that now there is the /status activated in medusa. It's only a simple status page and doesn't include too much information, but I think we should support it with our own handlers, in the long run. Might be a nice place for a quick glance on how your server performs. bye, Georg |