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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file supervisor-stdlog-0.7.9.tar.gz
.
File metadata
- Download URL: supervisor-stdlog-0.7.9.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9cfb7a87a035ef335ead6ea8b8d7cf3e623af7bdd2e16fb8ccd23f82675561 |
|
MD5 | d7c6d56e65aefa23e0912587207ccbaa |
|
BLAKE2b-256 | e5ea5f28b69b2beb131816ea1cadd373b466809e6b6bada68666ea05dd180de0 |
File details
Details for the file supervisor_stdlog-0.7.9-py3-none-any.whl
.
File metadata
- Download URL: supervisor_stdlog-0.7.9-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 811e236e24be5d41dc90e41a489c28040e2943655d17562efc53dacdeaf33a03 |
|
MD5 | 273c35fd739612b6f63e1cc34caa12ce |
|
BLAKE2b-256 | ca59683beb46966af1d18afd60dada57e8035f4b99619302742e6ba9fec50c7f |