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.mkdir(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.mkdir path ... |
create stdout_logfile and stderr_logfile dirs |
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.mkdir {} \; # make log directories
$ find . -name "*.ini" -exec supervisor_logs.clear {} \; # clear log files
readme-md - README.md generator
Project details
NoneRelease 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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b268fa668ec9297624d73a90e76544d5585b383c22a2fd4ab3d26192095916f3 |
|
MD5 | 6b13a8dfa0c43b3a9b3bc4acd8cbd655 |
|
BLAKE2b-256 | e7abbb185dba1991b799264cbde221351ab42e422a3bf7c93260bfa7edebbc7e |
Close
Hashes for supervisor_logs-2019.2.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee0ed7cb0fa989cc6eb9b5ea51e97c86d58430226fe259e1d8b0ccf01f5a0a50 |
|
MD5 | 99dcea6923712260dcad94141228294a |
|
BLAKE2b-256 | 90c940505dc5efe2190c376ea5b09dad4d9106082975cc6f76432ddf62bb301d |