Documentation ¶
Overview ¶
Package `zap` wraps Zap logging.
Zap has been chosen after a quick review of the logging solutions listed on Awesome Go. Zap was among the top 5 on GitHub. Its performance is impressive. Its API is similar to the stdlib `log` package. It also has a convenient structured logging api of `Levelw(msg, kv ...)` functions, which we usually use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger = zap.SugaredLogger
We use the convenience sugared logger `Levelw(msg, kv...)` functions.
func NewDevelopment ¶
func NewProduction ¶
Click to show internal directories.
Click to hide internal directories.