Example #1
0
File: web.go Project: issue9/web
// Infof 相当于调用了 logs.Infof,外加一些调用者的详细信息
func Infof(r *http.Request, format string, v ...interface{}) {
	logs.INFO().Output(2, messagef(r, format, v))
}
Example #2
0
File: web.go Project: issue9/web
// Info 相当于调用了 logs.Info,外加一些调用者的详细信息
func Info(r *http.Request, v ...interface{}) {
	logs.INFO().Output(2, message(r, v))
}