mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00

* run latest vndr so as to collect more LICENSE files * remove unused packages * vendor github.com/philhofer/fwd with LICENSE.md (MIT) * vendor github.com/bsphere/le_go with LICENSE (MIT) Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
37 lines
925 B
Markdown
37 lines
925 B
Markdown
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
|
|
|
|
[](https://godoc.org/github.com/bsphere/le_go)
|
|
|
|
[](https://travis-ci.org/bsphere/le_go)
|
|
|
|
Usage
|
|
-----
|
|
Add a new manual TCP token log at [logentries.com](https://logentries.com/quick-start/) and copy the [token](https://logentries.com/doc/input-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(...)`
|
|
|
|
```go
|
|
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")
|
|
}
|
|
```
|
|
|