polds / logrus-papertrail-hook

Papertrail hook for Logrus - https://github.com/sirupsen/logrus
MIT License
12 stars 8 forks source link

Add TCP/TLS option for hook #3

Closed jonathan-robertson closed 8 years ago

jonathan-robertson commented 8 years ago

I avoided making any breaking changes to the NewPapertrailHook method and instead just added NewPapertrailTCPHook.

Note that since the final parameter in tls.Dial is set to nil, this connection should use the default root set of the current operating system. If you'd like to provide your own Root PEM, you can use this example provided by Google: https://golang.org/pkg/crypto/tls/#example_Dial