另客网go项目公用的代码库

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