Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supervisor-stdlog-0.7.9.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

supervisor_stdlog-0.7.9-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page