package
0.0.0-20210115222349-20d68f94ee1f
Repository: https://github.com/golang/gddo.git
Documentation: pkg.go.dev
# Functions
Crit is a convenient alias for FromContext(ctx).Crit.
Debug is a convenient alias for FromContext(ctx).Debug.
Error is a convenient alias for FromContext(ctx).Error.
Fatal is equivalent to Crit() followed by a call to os.Exit(1).
FromContext always returns a logger.
Info is a convenient alias for FromContext(ctx).Info.
NewContext creates a new context containing the given logger.
NewHTTPContextHandler adds a context logger based on the given logger to each request.
Warn is a convenient alias for FromContext(ctx).Warn.