问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/22668729/uwsgi-cant-change-log-file-path