moby/vendor/github.com/bsphere/le_go
Sebastiaan van Stijn 8d5eebcc6e
vendor: github.com/bsphere/le_go v0.0.0-20200109081728-fc06dab2caa8
updates the "logentries" dependency;

- checking error when calling output
- Support Go Modules

full diff: 7a984a84b5...fc06dab2ca

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-03-09 20:42:01 +01:00
..
.gitignore vendor: regenerate 2022-01-18 15:46:04 +01:00
.travis.yml vendor: github.com/bsphere/le_go v0.0.0-20200109081728-fc06dab2caa8 2022-03-09 20:42:01 +01:00
le.go vendor: github.com/bsphere/le_go v0.0.0-20200109081728-fc06dab2caa8 2022-03-09 20:42:01 +01:00
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

GoDoc

Build Status

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")
}