Skip to content

Commit

Permalink
feat: opt log timestamp show
Browse files Browse the repository at this point in the history
  • Loading branch information
skyoct committed Jun 22, 2022
1 parent 6959c4f commit aa72357
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/log/logrus.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func NewV2(stream io.Writer, config Config) (Modular, error) {
logger.SetFormatter(&logrus.TextFormatter{
DisableTimestamp: !config.AddTimeStamp,
QuoteEmptyFields: true,
FullTimestamp: config.AddTimeStamp,
})
default:
return nil, fmt.Errorf("log format '%v' not recognized", config.Format)
Expand Down

0 comments on commit aa72357

Please sign in to comment.