liuxiaolong
2020-11-16 4e53005539afe577e6b3cb9b599b532412c84c4e
logger.go
@@ -14,7 +14,7 @@
}
func (l *BLog) Write(buf []byte) (n int, err error) {
   l.logger.Debug(string(buf))
   l.logger.Debug(strings.Replace(string(buf),"\n","", -1))
   return len(buf),nil
}
@@ -121,4 +121,12 @@
func Errorf(template string, v ...interface{}) {
   blog.logger.Errorf(template, v...)
}
}
func Fatal(v ...interface{}) {
   blog.logger.Fatal(v...)
}
func Fatalf(template string, v ...interface{}) {
   blog.logger.Fatalf(template, v...)
}