-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
If you configure a program to log to 'syslog' instead of providing a file path, then you are no longer able to view logs in the web interface, XML RPC interface, or supervisorctl shell. Ouch!
I suggest changing the syslog configuration method to be something you can do in addition to normal file logging instead of it being an exclusive alternative. Then Supervisor's log streaming features should be able to work normally.
So let's have two new program config options:
stdout_syslog
stderr_syslog
Setting them to true will make log messages go to syslog in addition to going to files specified by stdout_logfile and stderr_logfile.
We can continue to support setting stdout_logfile and stderr_logfile to 'syslog', so as to avoid breaking users' existing configurations, though for cleanliness I think it'd be good to raise a deprecation warning.