Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dougefresh/kitz
logz.io (http://logz.io) logger for go-kit (https://github.com/go-kit/kit)
https://github.com/dougefresh/kitz
Last synced: about 1 month ago
JSON representation
logz.io (http://logz.io) logger for go-kit (https://github.com/go-kit/kit)
- Host: GitHub
- URL: https://github.com/dougefresh/kitz
- Owner: dougEfresh
- License: apache-2.0
- Created: 2017-04-10T21:10:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-21T19:40:47.000Z (almost 7 years ago)
- Last Synced: 2024-06-21T21:40:59.561Z (7 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Logzio for go-kit logger
Send go-kit logs to Logzio[![Build Status](https://travis-ci.org/dougEfresh/kitz.svg?branch=master)](https://travis-ci.org/dougEfresh/kitz)
[![Go Report Card](https://goreportcard.com/badge/github.com/dougEfresh/kitz)](https://goreportcard.com/report/github.com/dougEfresh/kitz)
[![GoDoc](https://godoc.org/github.com/dougEfresh/kitz?status.svg)](https://godoc.org/github.com/dougEfresh/kitz)
[![license](http://img.shields.io/badge/license-apache-red.svg?style=flat)](https://raw.githubusercontent.com/dougEfresh/kitz/master/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
```go
package mainimport (
"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!")
}
```