Golang library for logentries.com
It is compatible with http://golang.org/pkg/log/#Logger
godoc - http://godoc.org/github.com/bsphere/logentries
Add a new manual TCP token log at logentries.com and copy the token.
Installation: go get github.com/bsphere/logentries
Note: The Logger is asynchronous, make sure your application does not terminate immediately otherwise no log message will be sent.
import (
"github.com/bsphere/logentries"
)
func main() {
le, err := logentries.Connect("XXXX-XXXX-XXXX-XXXX") // replace with token
if err != nil {
panic(err)
}
defer le.Close()
le.Println("another test message")
}