Skip to content

Commit

Permalink
Increae log timestamp precision (#9)
Browse files Browse the repository at this point in the history
from second to nanosecond. it helps users merge network functions logs and sort them easily.
  • Loading branch information
mahmoodgh authored and tim-ywliu committed Oct 27, 2022
1 parent 94cc494 commit 48e5c26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
strategy:
matrix:
go: [ '1.17', '1.18' ]
name: Go ${{ matrix.go }} sample
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion internal/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func init() {
log.SetReportCaller(false)

log.Formatter = &formatter.Formatter{
TimestampFormat: time.RFC3339,
TimestampFormat: time.RFC3339Nano,
TrimMessages: true,
NoFieldsSpace: true,
HideKeys: true,
Expand Down

0 comments on commit 48e5c26

Please sign in to comment.