Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Latest commit

 

History

History
35 lines (26 loc) · 494 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 494 Bytes

Logentries client (golang)

Install

$ go get -d github.com/depop/logentries

Usage

Set LOGENTRIES_TOKEN environment variable with your token

package main

import (
   "fmt"
   logentries "github.com/depop/logentries"
)

func main() {
  client := logentries.New("api-key")
  resp, err := client.LogSet.Create(&logentries.LogSetCreateRequest{
  	logentries.LogSetFields{
  		Name: "foobar",
  	},
  })
  if err != nil {
  	panic(err)
  }

  fmt.Println(resp)
}