Open ecc1 opened 8 years ago
A String()
method on *papertrail.Writer
that returns the "logsN.papertrailapp.comm:12345" string would also be useful.
+1
I plan on using LogDNA instead of Papertrail (also uses rsyslogd), and this would be helpful.
A simple auxiliary function:
func Destination(hostColonPort string, network string) *Writer
would be useful, in case papertrail ever adds new domain names, and because that's how the papertrail website refers to destinations.