UWSGI无法更改日志文件路径 [英] UWSGI can't change log file path
问题描述
我想改变UWSGI日志文件路径,我试过
[uwsgi]
plugins = python27
chdir = /home/example.com/apps/
pythonpath = /home/example.com/apps/
env = DJANGO_SETTINGS_MODULE =设置
module = django.core.handlers.wsgi:WSGIHandler()
touch-reload = /home/example.com/README.md
logto = /home/example.com /logs/uwsgi.logto.log;
daemonize = /home/example.com/logs/uwsgi.daemonize.log;
logdate = true
max-requests = 5000
buffer-size = 32768
但 /home/example.com/logs /
为空。日志文件仍然在 /var/log/uwsgi/app/example.com.log
在Ubuntu 13.04我没有这个问题,我该怎么办?
可能太晚了,但是debian软件包(2.0.7至少)具有 / usr / share / uwsgi / init / specific_daemon 文件,其中 - 守护程序被硬编码。您可以将其更改,或者只是删除该行,并在 /usr/share/uwsgi/conf/default.ini 或 /etc/uwsgi/apps-enabled/appname.ini 。
I have a Debian 7 + uwsgi 1.2.3-debian I want to change UWSGI log file path, I tried
[uwsgi]
plugins = python27
chdir = /home/example.com/apps/
pythonpath = /home/example.com/apps/
env = DJANGO_SETTINGS_MODULE=settings
module = django.core.handlers.wsgi:WSGIHandler()
touch-reload = /home/example.com/README.md
logto = /home/example.com/logs/uwsgi.logto.log;
daemonize = /home/example.com/logs/uwsgi.daemonize.log;
logdate = true
max-requests = 5000
buffer-size = 32768
But /home/example.com/logs/
is empty. Log file is still in /var/log/uwsgi/app/example.com.log
In Ubuntu 13.04 I don't have this problem, what can I do?
Might be too late, but debian package (2.0.7 at least) has a /usr/share/uwsgi/init/specific_daemon file where the --daemonize is hardcoded. You can change it there, or just remove that line and set on /usr/share/uwsgi/conf/default.ini or /etc/uwsgi/apps-enabled/appname.ini.
这篇关于UWSGI无法更改日志文件路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!