wsgi: document compatibility with python logging

Mention that `Logger` objects can be supplied to wsgi server instances
(work done in #75)
This commit is contained in:
lbonn
2016-02-22 14:51:32 +01:00
parent d473c3eaf9
commit 514c5d380f

View File

@@ -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.