Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext returns the a logger instance, either a newly initialised logger if one doesn't exist, a fieldless logger if the provided context is nil, or a logger retrieved from the provided context.
The ability to call FromContext with a nil context and get a clean logger instance eliminates the need for a logging.New() constructor.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.