Skip to content

A simple http://supervisord.org/ event listener to relay process stdout and stderr to supervisor's stdout.

License

Notifications You must be signed in to change notification settings

razielanarki/supervisor-stdlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supervisor-stdlog

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.

Installation

Just install via pip

pip install supervisor-stdlog

...or add to your requirements.txt:

supervisor-stdlog==0.7.9

Usage

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