Skip to content

Commit

Permalink
Merge pull request #3 from kschneider84/master
Browse files Browse the repository at this point in the history
Update logger_test.go
  • Loading branch information
phev8 authored Jul 26, 2022
2 parents 4c441ea + 2195ccd commit e4be67f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,11 @@ func TestDebugLevel(t *testing.T) {
}
})
}

func ExampleSetLevel() {
logger.SetLevel(logger.LEVEL_DEBUG)
logger.Error.Printf("error")
logger.Warning.Printf("warning")
logger.Debug.Printf("debug")
logger.Info.Printf("info")
}

0 comments on commit e4be67f

Please sign in to comment.