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
Post a Comment