gunicorn - How to change the stdout and stderr log location of processes started by supervisor? -
so in system, supervisor captures stderr , stdout these files:
root@3a1a895598f8:/var/log/supervisor# ls -l total 24 -rw------- 1 root root 18136 sep 14 03:35 gunicorn-stderr---supervisor-vvvsl1.log -rw------- 1 root root 0 sep 14 03:35 gunicorn-stdout---supervisor-lllimw.log -rw------- 1 root root 0 sep 14 03:35 nginx-stderr---supervisor-hnipia.log -rw------- 1 root root 0 sep 14 03:35 nginx-stdout---supervisor-2jdn7t.log -rw-r--r-- 1 root root 1256 sep 14 03:35 supervisord.log
but change gunicorn's stdout , stderr log files 'location /var/log/gunicorn , fixed file names monitoring purpose.
this have done in config file:
[program:gunicorn] stdout_capture_maxbytes=50mb stderr_capture_maxbytes=50mb stdout = /var/log/gunicorn/gunicorn-stdout.log stderr = /var/log/gunicorn/gunicorn-stderr.log command=/usr/bin/gunicorn -w 2 server:app
however not take effect @ all. did miss in configuration?
Comments
Post a Comment