另客网go项目公用的代码库
Your Name 6fc26962de upgrade link 2 years ago
..
hooks upgrade link 2 years ago
README.md add readme 5 years ago
log.go add log module 5 years ago
logger.go debug info 5 years ago
logger_test.go debug info 5 years ago

README.md

desc

目前支持 [error], [fatal], [panic]三类错误的hook邮件通知

install

go get git.links123.net/links123.com/pkg/log

demo

err := log.NewDefaultLogger(&hooks.Project{
		Name:   "forum",
		Domain: "http://api.links123.net/forum",
	})
if err != nil {
    panic(err)
}

log.Debug("this a debug info")
log.Error("this a err info")
log.Fatal("this a fatal info")