u
This commit is contained in:
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()))
|
||||
|
||||
Reference in new issue
Block a user