If this process is mission-critical, I'd turn it around, have it log to stdout, push that stdout to files with svlogd (from runit) and move that to the log server.
The reason is that if this process has to implement the log retrying logic, that is a priority inversion. It's better to buffer the log and let another process ship it - decouple it from the main program. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.