示例#1
0
文件: logger.go 项目: sillydong/goczd
func (l *LoggerMiddleware) printf(format string, a ...interface{}) {
	golog.Infof(format, a...)
}
示例#2
0
文件: gorpc.go 项目: sillydong/goczd
func (e *event) OnAfterInvoke(name string, args []reflect.Value, byref bool, result []reflect.Value, context hprose.Context) {
	if request, ok := context.GetInt64("request"); ok {
		golog.Infof("%v: %vns", name, time.Now().UnixNano()-request)
	}
}