Skip to content

Commit

Permalink
Added SDK testlog
Browse files Browse the repository at this point in the history
  • Loading branch information
blaubaer committed Jul 25, 2024
1 parent a132573 commit acf3ba2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions native/level/colorizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
var DefaultColorizer Colorizer = ColorizerMap{
level.Trace: ``,
level.Debug: ``,
level.Info: `[34;1m`,
level.Warn: `[33;1m`,
level.Info: `[34;1m`,
level.Warn: `[33;1m`,
level.Error: ``,
level.Fatal: ``,
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/testlog/logger_core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func Test_coreLogger_formatTime_ts(t *testing.T) {
provider.initIfRequired()
instance := provider.coreLogger

givenTs, _ := time.Parse(time.DateTime, "2024-07-25 18:56:13")
givenTs, _ := time.Parse(dateTimeFormat, "2024-07-25 18:56:13")
givenEvent := instance.NewEvent(level.Info, map[string]interface{}{
"timestamp": givenTs,
})
Expand Down

0 comments on commit acf3ba2

Please sign in to comment.