简体   繁体   中英

Separate vassal logging with uWSGI emperor mode

I'm running uWSGI 1.9.17 in emperor mode (with the default config from Trusty's uwsgi-emperor package), and the emperor's logs are piping into /var/log/uwsgi/emperor.log.

The emperor.log file also contains all the stdout/err combined from each vassal, and I can't seem to get any of the vassals to log to a separate file. I've tried using the logto = /var/uwsgi/apps/vassal1.log config options but to no avail.

Does anyone have any idea how to get the vassals logging to separate files?

To separate vassal logs from emperor, you can use logger:

logger = file:/var/uwsgi/apps/vassal1.log

I'm not sure why logto doesn't work on vassals, but loggers works fine. You can even specify what should be logged to what file (or by using other plugins, not only to file). More on loggers you can find here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM