Tizen_4.0 base
[platform/upstream/docker-engine.git] / vendor / github.com / bsphere / le_go / README.md
1 le_go
2 =====
3
4 Golang client library for logentries.com
5
6 It is compatible with http://golang.org/pkg/log/#Logger
7 and also implements http://golang.org/pkg/io/#Writer
8
9 [![GoDoc](https://godoc.org/github.com/bsphere/le_go?status.png)](https://godoc.org/github.com/bsphere/le_go)
10
11 [![Build Status](https://travis-ci.org/bsphere/le_go.svg)](https://travis-ci.org/bsphere/le_go)
12
13 Usage
14 -----
15 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/).
16
17 Installation: `go get github.com/bsphere/le_go`
18
19 **Note:** The Logger is blocking, it can be easily run in a goroutine by calling `go le.Println(...)`
20
21 ```go
22 package main
23
24 import "github.com/bsphere/le_go"
25
26 func main() {
27         le, err := le_go.Connect("XXXX-XXXX-XXXX-XXXX") // replace with token
28         if err != nil {
29                 panic(err)
30         }
31
32         defer le.Close()
33
34         le.Println("another test message")
35 }
36 ```
37