Your Name 6fc26962de upgrade link | 2 gadus atpakaļ | |
---|---|---|
.. | ||
hooks | 2 gadus atpakaļ | |
README.md | 5 gadus atpakaļ | |
log.go | 5 gadus atpakaļ | |
logger.go | 5 gadus atpakaļ | |
logger_test.go | 5 gadus atpakaļ |
目前支持 [error], [fatal], [panic]三类错误的hook邮件通知
go get git.links123.net/links123.com/pkg/log
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")