supervisor logs
Project description
Install
$ [sudo] pip install supervisor-logs
Functions
function | __doc__ |
---|---|
supervisor_logs.add(path) |
add stdout_logfile and stderr_logfile to supervisor config sections |
supervisor_logs.clear(path) |
clear log files |
supervisor_logs.create(path) |
add stdout_logfile and stderr_logfile to supervisor config sections |
CLI
usage | __doc__ |
---|---|
python -m supervisor_logs.add path ... |
add stdout_logfile and stderr_logfile to supervisor config sections |
python -m supervisor_logs.clear path ... |
clear log files |
python -m supervisor_logs.create path ... |
create stdout_logfile and stderr_logfile files |
Examples
file.ini
before
[program:name]
$ export SUPERVISOR_LOGS=~/Library/Logs
$ python -m supervisor_logs.add file.ini
file.ini
after
[program:name]
stderr_logfile = ~/Library/Logs/supervisor/name/err.log
stdout_logfile = ~/Library/Logs/supervisor/name/out.log
$ find . -name "*.ini" -exec supervisor_logs.add {} \; # add logs to program sections
$ find . -name "*.ini" -exec supervisor_logs.create {} \; # create log files
$ find . -name "*.ini" -exec supervisor_logs.clear {} \; # clear log files
readme-md - README.md generator
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
Close
Hashes for supervisor-logs-2019.2.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb655042bcfb2e42d90883f4a314d64b5bad12acabcde4f4886dde3a102b585c |
|
MD5 | 1c0f0cacb10d43b5e1ea7cee8cf17ee4 |
|
BLAKE2b-256 | af94b26c773125c6cb214ea677a5f9b5f6d99784b519b88cf555507827e1f1ad |
Close
Hashes for supervisor_logs-2019.2.16-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9e478cee7e8853bae8c4e36d141fc9497ac66f3c9aedee7fdb62a3154a9c90a |
|
MD5 | 5bb07d0667a4ec5ed0e613bc03e692b4 |
|
BLAKE2b-256 | 678779d564d41db4ddac7d979ad59816adab1c5a43f225fa0f51817198553b01 |