Hi,
Use Paste's Translogger.
from mypackage import wsgiapp
from waitress import serve
from paste.translogger import TransLogger
serve(TransLogger(wsgiapp, setup_console_handler=False))
(If you are configuring logging, remove the setup_console_handler,
which defaults to True.)
I am, at this very moment, finalizing a patch to the waitress docs
for submission as a pull request.
Meanwhile, you can see how it's done with pyramid here:
http://docs.pylonsproject.org/projects/pyramid/en/master/narr/logging.html#request-logging-with-paste-s-translogger
(I'll let you find the url for the Paste docs. Sorry.)
Regards,
Karl <
k...@meme.com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein