From 514c5d380ffe47daf8a9cccec3f5c3a557bd314c Mon Sep 17 00:00:00 2001 From: lbonn Date: Mon, 22 Feb 2016 14:51:32 +0100 Subject: [PATCH] wsgi: document compatibility with python `logging` Mention that `Logger` objects can be supplied to wsgi server instances (work done in #75) --- eventlet/wsgi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eventlet/wsgi.py b/eventlet/wsgi.py index 6af2b99..f6c96cf 100644 --- a/eventlet/wsgi.py +++ b/eventlet/wsgi.py @@ -799,7 +799,8 @@ def server(sock, site, :param sock: Server socket, must be already bound to a port and listening. :param site: WSGI application function. - :param log: File-like object that logs should be written to. + :param log: logging.Logger instance or file-like object that logs should be written to. + If a Logger instance is supplied, messages are sent to the INFO log level. If not specified, sys.stderr is used. :param environ: Additional parameters that go into the environ dictionary of every request. :param max_size: Maximum number of client connections opened at any time by this server.