mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e5d28115ee
- all changes here are attributed to difference in behaviour between, namely: - resolution of secondary test dependencies - prunning of non-Go files Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
.gitignore | ||
.travis.yml | ||
le.go | ||
LICENSE | ||
README.md |
le_go
Golang client library for logentries.com
It is compatible with http://golang.org/pkg/log/#Logger and also implements http://golang.org/pkg/io/#Writer
Usage
Add a new manual TCP token log at logentries.com and copy the token.
Installation: go get github.com/bsphere/le_go
Note: The Logger is blocking, it can be easily run in a goroutine by calling go le.Println(...)
package main
import "github.com/bsphere/le_go"
func main() {
le, err := le_go.Connect("XXXX-XXXX-XXXX-XXXX") // replace with token
if err != nil {
panic(err)
}
defer le.Close()
le.Println("another test message")
}