Skip to content

Commit

Permalink
默认日志格式去掉模块输出的固定长度,避免日志中出现大量空白
Browse files Browse the repository at this point in the history
  • Loading branch information
mylxsw committed Nov 22, 2022
1 parent 90b9a4e commit 7b645df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formatter/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (formatter DefaultFormatter) Format(f event.Event) string {

if formatter.colorful {
message = fmt.Sprintf(
"[%s] %s %-20s %s %s",
"[%s] %s %s %s %s",
f.Time.Format(time.RFC3339),
misc.ColorfulLevelName(f.Level),
misc.ModuleNameAbbr(f.Module),
Expand Down

0 comments on commit 7b645df

Please sign in to comment.