supervisor logs
Project description
Installation
$ [sudo] pip install supervisor-logs
Executable modules
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
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
Close
Hashes for supervisor-logs-2019.4.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 831cb1bdf8b0376d1c70fbb8cae4e4dc9f16e8fe0e1bfb9332a5690dd0c7c4b3 |
|
MD5 | 0e38d0c353439301b2cb47334cf559eb |
|
BLAKE2b-256 | de00976f71259c5be643dd388ec9fe18c8f4e0507493dd3cb7b001392afb01ed |