Skip to content

coinrust/log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")
}