Pylons / waitress

Waitress - A WSGI server for Python 3
https://docs.pylonsproject.org/projects/waitress/en/latest/
Other
1.45k stars 176 forks source link

Waitress not showing requests in logs. #337

Closed xrobhal closed 3 years ago

xrobhal commented 3 years ago

Hi,

My waitress server is running and in my log I can see the 'Serving on ..........' message.

However I can't see the requests in the log.

for example I was expecting:

00:50:53,695 INFO [wsgi] 192.168.1.111 - - [11/Aug/2011:20:09:33 -0700] "GET /hello HTTP/1.1" 200 - "-"

I'm using logger = logging.getLogger('waitress')

Please help.

Thanks, Rob.

stevepiercy commented 3 years ago

Please read the documentation on Access Logging, then follow up with any further questions.

mmerickel commented 3 years ago

Thanks for the link @stevepiercy. Waitress does not log requests itself and relies on the user mounting some WSGI middleware to do it, for example the paste translogger or request-id.