A simple supervisord event listener to relay process stdout and stderr to supervisor's stdout.
This is useful in situations where supervisor oversees processes in a container / stack,
so the logs can be collected by the orchestating runtime.
Just install via pip
pip install supervisor-stdlog
...or add to your requirements.txt:
supervisor-stdlog==0.7.9
An example supervisord.conf:
[supervisord]
nodaemon = true
[program:web]
command = ...
stdout_events_enabled = true
stderr_events_enabled = true
[eventlistener:stdlog]
events = PROCESS_LOG
command = supervisor-stdlog
result_handler = supervisor_stdlog:log_handler
buffer_size = 100