bitly / statsdaemon

an implementation of Etsy's statsd in Go
The Unlicense
570 stars 131 forks source link

Add in a file path for logging log output #43

Closed themartorana closed 9 years ago

themartorana commented 9 years ago

Adds in the ability to specify a log file, and just sets log.SetOutput(...) to that file handle.

mreiferson commented 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...

themartorana commented 9 years ago

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!