I want to let uWSGI only logging server errors and avoid the normal requests logs, because the file grow very fast, and all the requests logging does NGINX very well for me.
How can I properly configurate my uwsgi.ini for that? The documentation is not very clear for me.
Antonio Romero Oca
Finally the solution was quite simple:
logto = /var/log/uwsgi/uwsgi.log
log-5xx = true
disable-logging = true
According to the help:
-L|--disable-logging disable request logging
来源:https://stackoverflow.com/questions/35694457/how-to-log-only-5xx-errors-on-uwsgi