Skip to content

Commit

Permalink
优化日志格式
Browse files Browse the repository at this point in the history
  • Loading branch information
alex cai committed Nov 4, 2016
1 parent eb1436b commit cf88ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion level.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (lf *LogFile) Fatal(msg string) error {

func (lf *LogFile) writeLevelMsg(msg string, level Priority) error {
if level >= lf.level {
return lf.Write(levelTitle[level] + msg)
return lf.Write(levelTitle[level] + " " + msg)
}

return nil
Expand Down

0 comments on commit cf88ced

Please sign in to comment.