Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext retrieves the logger from the context If no logger is found, it returns the default logger
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is a type for context keys to avoid collisions
const (
LoggerKey ContextKey = "logger"
)
Logger context keys
Click to show internal directories.
Click to hide internal directories.