Are you trying to log the requests to waitress? I could never get it working also. If fact I asked the question on SO a couple of years ago and someone said it couldn't be done.
For a work around I added a pyramid "subscriber" that does all the logging for each request.
Edit.
On reviewing my code I stopped using a subscriber and switched to using a tween for logging. Both ways will work.
tweens.py
import logging
log = logging.getLogger(__name__)
def simple_tween_factory(handler, registry):
# one-time configuration code goes here
def simple_tween(request):
# code to be executed for each request before
# the actual application code goes herE
response = handler(request)
# code to be executed for each request after
# the actual application code goes here
path_qs = request.path_qs
status = response.status
log.debug('[{0}] {1}'.format(status, path_qs)) ##See the path and query string for every response
return response
return simple_tween
Add this to your Pyramid Configuration
config.add_tween('{}.tweens.simple_tween_factory'.format(<your app name>))