This commit is contained in:
oneao committed 2025-08-15 17:31:08 +08:00
1 parent b408533fe7
commit c01eead022
3 files changed
+22

No files matched your search

@@ -166,6 +166,7 @@ func newConsoleEncoder(enableColor bool) zapcore.Encoder {
enc.AppendString(lvl.CapitalString())
}
},
//ConsoleSeparator: "",
EncodeCaller: func(caller zapcore.EntryCaller, enc zapcore.PrimitiveArrayEncoder) {
pid := os.Getpid()
enc.AppendString(fmt.Sprintf("%d --- %s", pid, caller.TrimmedPath()))