g4klx / ircDDBGateway

The ircDDB Gateway for D-Star
GNU General Public License v2.0
61 stars 41 forks source link

Adds console logging option to ircddbgatewayd #51

Closed sq7lrx closed 4 years ago

sq7lrx commented 4 years ago

When invoked with the -foreground parameter, ircddbgatewayd will print all logs to the console (stdout/stderr) instead of log files.

This allows ircddbgatewayd to be run in a container or as a systemd standard service where applications are expected to provide logs on standard output / standard error.

sq7lrx commented 4 years ago

@g4klx could you please consider adding this feature to allow us to run ircDDBGateway in Docker containers? If you like this idea, I'm gonna submit a similar PR for DStarRepeater and/or others.

I've tested this on Fedora Linux 32, Alpine Linux, Debian 8-10. No idea if it compiles OK on Windows. On the other hand, it wouldn't have any effect on Windows since standard output goes nowhere on this system. The important thing is that it doesn't break the builds.