ralphlange / procServ

Wrapper to start arbitrary interactive commands in the background, with telnet or Unix domain socket access to stdin/stdout
GNU General Public License v3.0
23 stars 23 forks source link

Support logging to Syslog #25

Closed kasemir closed 5 years ago

kasemir commented 5 years ago

Logging is one of the big advantages of using procServ. The --logfile option writes to a file. On Linux systems, it would be nice to also support writing to the system logs (/var/log/messages etc.) instead of to a file.

Was brought up in https://github.com/shroffk/phoebus/issues/612.

Seems similar to #13

ralphlange commented 5 years ago

Setting -L - should send the log to stdout. In combination with a system daemon manager (like systemd/supervisord) and foreground mode, doesn't that allow you to send the log output to syslog through the system daemon logging?