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...) }