I run gunicorn with the option --pasterto run Pyramid.
gunicorn -w 1 --paster development.ini
gunicorn's own messages appear on the 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:
2014-02-20 22:38:50 [44201] [INFO] Using worker: sync
However, the log messages in my Pyramid application are not displayed.
If I use pserve development.inione that uses waitressas a WSGI server, the log messages displayed on the console are just fine.
My development.iniincludes a pretty vanilla log configuration configuration.
[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 get lost why magazines do not appear when I use gunicorn.
source
share