Created
November 30, 2020 14:43
-
-
Save alterEgo123/4f7622081729663b689e957f7a31dac9 to your computer and use it in GitHub Desktop.
Redirect python logging to supervisord's stdout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[supervisord] | |
nodaemon=true | |
user = root | |
[program:launcher] | |
command=python3 -u launcher.py | |
autostart = true | |
autorestart = true | |
stdout_logfile=/var/log/launcher.log | |
stderr_logfile=/var/log/launcher.log | |
[program:log] | |
command=tail -f /var/log/launcher.log | |
stdout_logfile=/dev/stdout | |
stdout_logfile_maxbytes=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment