Skip to content

dougEfresh/kitz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logzio for go-kit logger

Send go-kit logs to Logzio

Build Status Go Report Card GoDoc license

Getting Started

Get Logzio token

  1. Go to Logzio website
  2. Sign in with your Logzio account
  3. Click the top menu gear icon (Account)
  4. The Logzio token is given in the account page

Initialize Logger

package main

import (
        "github.com/dougEfresh/kitz"
        "github.com/go-kit/kit/log"
)

func main() {
        klogger, err := kitz.New("123456789")
        if err != nil {
                panic(err)
        }
        // returns the go-kit logger
        logger := klogger.Build()
        // message is required
        logger.Log("message", "hello!")
}

Releases

No releases published

Packages

No packages published

Languages