coinrust / log

Zap-based logging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

log

Zap-based logging

Example

package main

import "github.com/coinrust/log"

func init() {
	log.Init("./test.log",
		log.DebugLevel,
		log.SetCaller(true),
		log.SetStdout(true))
}

func main() {
	defer log.Sync()

	log.Infof("%v", "hello")
}

About

Zap-based logging

License:MIT License


Languages

Language:Go 100.0%