Skip to content

Commit

Permalink
log fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Dec 12, 2024
1 parent dba7800 commit 00dc15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var writers []func(log *Entry) = []func(log *Entry){

// StdWriter is a default writer function that prints the log message to stdout.
var StdWriter = func(log *Entry) {
fmt.Println(log.Date.Format("02 15:04:05"), log.Level, log.File+":"+strconv.Itoa(log.Line), log.Message)
fmt.Println(log.Date.Format("15:04:05"), "["+log.Level+"]", log.File+":"+strconv.Itoa(log.Line), log.Message)
}

// levels maps the Level constants to their string representations.
Expand Down

0 comments on commit 00dc15d

Please sign in to comment.