Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLogPrefix ¶
WithLogPrefix returns a new context with a Logger that has the given prefix using LoggerWithPrefix.
func WithLogger ¶
WithLogger injects an additional logger into ctx.
Types ¶
type Logger ¶
Logger is a wrapper around the stdlib Logger.
func FromContext ¶
FromContext returns the Logger instance from the ctx, or log.Default() if none.
func NewWithPrefix ¶
NewWithPrefix creates a new Logger with the given prefix appended.
func (*Logger) WithPrefix ¶
Click to show internal directories.
Click to hide internal directories.