Send go-kit logs to Logzio
- Go to Logzio website
- Sign in with your Logzio account
- Click the top menu gear icon (Account)
- The Logzio token is given in the account page
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!")
}