Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Golang library for logentries.com

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

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(...)

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")
}
Something went wrong with that request. Please try again.