I am starting gunicorn with the --paster
option for running Pyramid.
gunicorn -w 1 --paster development.ini
gunicorn's own messages show up fine on console, for example
2014-02-20 22:38:50 [44201] [INFO] Starting gunicorn 18.0
2014-02-20 22:38:50 [44201] [INFO] Listening at: http://0.0.0.0:6543 (44201)
2014-02-20 22:38:50 [44201] [INFO] Using worker: sync
However the log messages in my Pyramid app are not showing up.
If I use pserve development.ini
, which uses waitress
as WSGI server, the log messages show up on console just fine.
My development.ini
includes a pretty vanilla logging configuration section.
[loggers]
keys = root, apipython
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_apipython]
level = DEBUG
handlers =
qualname = apipython
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = DEBUG
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
I am at lost why the logs are not showing up when I use gunicorn.