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: 2 months 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-21T19:40:47.000Z (about 7 years ago)
- Last Synced: 2025-01-21T02:29:43.737Z (4 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[](https://travis-ci.org/dougEfresh/kitz)
[](https://goreportcard.com/report/github.com/dougEfresh/kitz)
[](https://godoc.org/github.com/dougEfresh/kitz)
[](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!")
}
```