Fix typoes
This commit is contained in:
parent
7d8f9e5cf0
commit
9a92fd2536
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue