Documentation ¶
Overview ¶
Package extrazap provides helper functions for initializing Zap loggers, as well as associating and extracting them with/from context objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachLoggerToContext ¶
AttachLoggerToContext returns a copy of the given context with the given logger attached to it. Neither the given context nor the given logger are affected.
func ExtractLoggerFromContext ¶
ExtractLoggerFromContext returns the logger attached to the given context, or the global logger if no logger instance was previously attached to it.
func NewDevelopmentLogger ¶
NewDevelopmentLogger builds a customized development logger which is even more user-friendly than zap.NewDevelopment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.