Closed themartorana closed 9 years ago
Thanks for the pr @themartorana.
For some context, we usually don't add built-in logging facilities... we encourage users to pipe stdout
/stderr
of the process to their destination of choice, so I'm :-1: on this...
Understood. Piping output was causing me a few issues with running Go binaries with /usr/sbin/daemon
in rc.d scripts on FreeBSD, so I added this for my own needs. Feel free to reject!
Adds in the ability to specify a log file, and just sets
log.SetOutput(...)
to that file handle.