This commit is contained in:
wangchuxiao 2023-04-17 20:12:52 +08:00
parent 111fbdcccf
commit 3fa96b0700

View File

@ -131,7 +131,7 @@ func customCallerEncoder(caller zapcore.EntryCaller, enc zapcore.PrimitiveArrayE
enc.AppendString("\x1b[32m") enc.AppendString("\x1b[32m")
enc.AppendString(caller.Function) enc.AppendString(caller.Function)
enc.AppendString(":") enc.AppendString(":")
enc.AppendInt(int64(caller.Line)) enc.AppendInt(caller.Line)
enc.AppendString("\x1b[0m") enc.AppendString("\x1b[0m")
} }