Documentation
¶
Index ¶
Constants ¶
View Source
const LoggerKey ctxLogger = 0
LoggerKey is the key that holds logger in a context.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns logger from context or DefaultLogger if there is no logger in context
func Set ¶
Set puts logger into context and returns new context
Types ¶
This section is empty.
Source Files
¶
- context.go
Click to show internal directories.
Click to hide internal directories.