0

我正在使用 supervisord(通过django-supervisor一个瘦包装器)在我的 Django 安装中运行多个进程。我的问题是所有日志都写入supervisord日志文件(在本例中为 out.log)而不是不同的日志文件。

conf文件(清理):

[supervisord]
logfile=/var/log/server/ourserver/out.log


[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL  for a unix socket


[program:webserver]
command=uwsgi uwsgi.ini
stout_logfile = /var/log/server/ourserver/django.log
redirect_stderr = true
;autostart = true
;autorestart = true

[program:celery]
command=celery worker -B -A server.celery --loglevel=info --concurrency=4
;autostart = true
;autorestart = true
stout_logfile = /var/logs/server/ourserver/celery.log
redirect_stderr = true

[program:updater]
command=python -u updater.py
;directory=/home/ubuntu/server/ourserver
;autostart = true
;autorestart = true
stout_logfile = /var/logs/server/ourserver/updater.log
redirect_stderr = true
4

1 回答 1

2

stdout_logfile替换stout_logfile

于 2014-03-10T12:01:49.930 回答