Fix log format

This commit is contained in:
世界
2022-07-22 14:28:29 +08:00
parent e531e89b4b
commit 7bc7b72c61
2 changed files with 9 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ func (l *simpleLogger) Log(ctx context.Context, level Level, args []any) {
if level > l.level {
return
}
message := l.formatter.Format(ctx, level, l.tag, F.ToString(args...), time.Now()) + "\n"
message := l.formatter.Format(ctx, level, l.tag, F.ToString(args...), time.Now())
if level == LevelPanic {
panic(message)
}