No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
coderanger Merge pull request #6 from mhariri/patch-1
Prefix all log lines with the process name
Latest commit 935b891 Jun 14, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Try to fix packaging. Jun 7, 2012
README.md Initial commit. Jun 7, 2012
setup.py And fixing paths again. Jun 7, 2012
supervisor_stdout.py Prefix all log lines with the process name May 30, 2016

README.md

supervisor-stdout

A simple supervisord event listener to relay process output to supervisor's stdout.

This is useful in situations where the output will be collected and set to external logging framework, such as Heroku.

Installation

Just install via pip or add to your requirements.txt:

pip install supervisor-stdout

Usage

An example supervisord.conf:

[supervisord]
nodaemon = true

[program:web]
command = ...
stdout_events_enabled = true
stderr_events_enabled = true

[eventlistener:stdout]
command = supervisor_stdout
buffer_size = 100
events = PROCESS_LOG
result_handler = supervisor_stdout:event_handler