python - logging with uwsgi (multiprocess) + flask -


i plan run uwsgi (4 processes) following command

command = uwsgi --master --processes 4 --die-on-term --socket /tmp/uwsgi.sock --file run.py --callable app --stats /tmp/stats.socket --memory-report --post-buffering  32768 --virtualenv <virtualenv> --logto2 <log_path> 

i want use streamlogger log stdout , stderr. question is: uwsgi multiplex log 4 worker processes log file?

i know syslog better option , there many other options: http://uwsgi-docs.readthedocs.org/en/latest/logging.html

but want start off stream logger if can handle concurrent log messages workers.

just add --log-master , every logline serialized master write line synchronously file.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -