Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
leodeim committed Dec 22, 2023
1 parent 606704d commit 5158cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func defaultLogger() {

func customLevel() {
l := log.New(log.WithName("cust"), log.WithLevel(log.Warning))
l.Warning().Msg("I only logging Warning level and above")
l.Warning().Prop("level", string(l.Level())).Msg("I only logging Warning level and above")
l.Info().Msg("This will not be writter to the log")
}

Expand Down

0 comments on commit 5158cf6

Please sign in to comment.