Skip to content

yeeuu/ylog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ylog

ylog是一个简单的日志记录模块,以json格式记录程序日志,日志文件每天切换。根据funny/log修改而来。

例子

package main

import (
	"github.com/yeeuu/ylog"
)

func main(t *testing.T) {
	ylog.Init(".")
	ylog.SetDebug(true)
	ylog.Debug("debug")
	ylog.Error("error", ylog.M{'error': 111})
	ylog.Warning("warning")
	ylog.Info("info")
	ylog.Close()
}

About

ylog is a simple logger for golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages