我有一个 [program:x] 正在运行,它会打印 / sys.stdout.writes 很多东西。[supervisord] 的 AUTO childlogdir 或 [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