I have a Pyramid application, which works fine, when started via pserve
or via uwsgi
. When started via pserve
, my logging setup works fine, but not when started via uwsgi
. The uwsgi
section of my paster ini looks like this:
[uwsgi]
socket = 127.0.0.1:3099
master = True
processes = 1
virtualenv = /opt/data/virtualenvs/some_virtual_env
paste = config:%p
paste-logger = True
buffer-size = 65535
I found of course this question and also tried to configure the logger like this:
paste-logger = %p
But is does not work. My logging config is using an absolute path and the target folder of the log file allows reading and writing for everybody. I wonder a little bit about how to specify paste-logger
, because it has no argument according to the documentation.
The command line configuration for upstart is defined like this:
exec uwsgi --master --die-on-term --emperor /etc/uwsgi/apps-enabled
No custom log files are created and in the uwsgi log I don't see any helpful messages or errors. Any help how to get logging working or to debug the problem would be very appreciated.