[Twisted-Python] Removing cruft from logs

"Einar S. Idsø" einar at norsk-esport.no
Sun Feb 11 05:10:04 MST 2007


Hi,

I am currently developing an application which will first and foremost
be an xmlrpc server with an adbapi or sasync backend. The number of
xmlrpc-requests is expected to be up to around a hundred per second.
Unfortunately, the logging system by default logs the following for each
and every request, leading to ridiculous logfiles:

2007/02/11 12:54 CET [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
[11/Feb/2007:11:54:57 +0000] "POST /RPC2 HTTP/1.0" 200 122 "-"
"xmlrpclib.py/1.0.1 (by www.pythonware.com)"

It seems that even if I define my own logservice, as per example 11-5 in
Abe Fettig's book, I am unable to catch and filter this logentry in the
emit function before it is written to file. So I guess there's another
LogObserver used by twistd, to which I have no direct access?

What would be the proper way to get rid of this cruft?

Cheers,
Einar S. Idsø





More information about the Twisted-Python mailing list