一些前缀

This commit is contained in:
Yun
2024-02-03 02:07:49 +08:00
parent a08d268c92
commit baec4bf675
2 changed files with 4 additions and 10 deletions
+4
View File
@@ -42,6 +42,10 @@ func (l *Logger) logger(ctx context.Context, event string, v ...any) {
}
fdb, _ := json.Marshal(fd)
ff := []byte("\n[" + event + "]")
fdb = append(ff, fdb...)
l.write(event, fdb)
if l.option.errorToInfo && event == "error" {