Skip to content

Commit

Permalink
logrus text formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
GarbhanK committed May 26, 2024
1 parent d40f742 commit f7375e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import (

func init() {
log.SetLevel(log.InfoLevel)
log.SetFormatter(&log.TextFormatter{
DisableColors: false,
FullTimestamp: true,
})

debugEnabled := gin.IsDebugging()

if (!debugEnabled) {
Expand Down

0 comments on commit f7375e9

Please sign in to comment.