Skip to content

leanfra/unilog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unilog

unilog is a simple log libary wrap uber zap libary

example

import (
	"github.com/leanfra/unilog"
	"go.uber.org/zap"
)

func main() {
	unilog.SetSimpleLogger("json", "./a.log", zap.DebugLevel)

	unilog.L().Debug("a log 1")
	unilog.L().Debug("a log 2")

	unilog.SetSimpleLogger("console", "/dev/stderr", zap.DebugLevel)
	unilog.L().Debug("b log 1")
	unilog.L().Debug("b log 2")

	unilog.L().Sugar().Error("b error 1")
}

documents

run

go doc --all

About

unilog is my log lib wrap ubuer zap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages