[program:x]を実行していて、多くのことを/sys.stdout.writesで出力します。[supervisord]のAUTOchildlogdirにも[program:x]のstdout_logfileにも表示されないものがありますか?何かが足りませんか?
[program:x]から印刷または標準化されたものをすべてキャプチャするにはどうすればよいですか?
私のプログラムでは、明示的に両方を実行しています。
print "something"
sys.stdout.write("something")
関連するsupervisord.confファイル
[supervisord]
childlogdir = %(here)s/../logs/supervisord/
logfile = %(here)s/../logs/supervisord/supervisord.log
logfile_maxbytes = 100MB
logfile_backups = 10
loglevel = info
pidfile = %(here)s/../logs/supervisord/supervisord.pid
umask = 022
nodaemon = false
nocleanup = false
[program:x]
directory = %(here)s/../
command = python file.py
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile = /appropriate-path/to/access.log