Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set uWSGI loglevel?

Tags:

logging

uwsgi

I managed to setup uWSGI logging into a file by setting logto = /path/to/logfile. The problem is that logging every single request causes the log file to grow too fast. How can I increase the logging level so that only errors are logged?

like image 575
karlosss Avatar asked Oct 29 '22 01:10

karlosss


1 Answers

You can use the disable-logging option as shown here.

You might want to also ensure log-4xx and log-5xx are enabled so that you can still see errors.

More info in the docs.

like image 103
Johannes Liebermann Avatar answered Nov 09 '22 11:11

Johannes Liebermann