diff --git a/hlog/hlog.go b/hlog/hlog.go index bbe8b12..2026214 100644 --- a/hlog/hlog.go +++ b/hlog/hlog.go @@ -124,7 +124,7 @@ func RefererHandler(fieldKey string) func(next http.Handler) http.Handler { type idKey struct{} -// IDFromRequest returns the unique id accociated to the request if any. +// IDFromRequest returns the unique id associated to the request if any. func IDFromRequest(r *http.Request) (id xid.ID, ok bool) { if r == nil { return diff --git a/log/log.go b/log/log.go index ad61913..dd92ab9 100644 --- a/log/log.go +++ b/log/log.go @@ -22,7 +22,7 @@ func With() zerolog.Context { return Logger.With() } -// Level crestes a child logger with the minium accepted level set to level. +// Level creates a child logger with the minimum accepted level set to level. func Level(level zerolog.Level) zerolog.Logger { return Logger.Level(level) } @@ -89,7 +89,7 @@ func WithLevel(level zerolog.Level) *zerolog.Event { } // Log starts a new message with no level. Setting zerolog.GlobalLevel to -// zerlog.Disabled will still disable events produced by this method. +// zerolog.Disabled will still disable events produced by this method. // // You must call Msg on the returned event in order to send the event. func Log() *zerolog.Event { diff --git a/log/log_example_test.go b/log/log_example_test.go index d97a919..32f3699 100644 --- a/log/log_example_test.go +++ b/log/log_example_test.go @@ -102,7 +102,7 @@ func ExampleFatal() { // This example uses command-line flags to demonstrate various outputs // depending on the chosen log level. -func ExampleLevelFlag() { +func Example_LevelFlag() { setup() debug := flag.Bool("debug", false, "sets log level to debug")