Documentation ¶
Overview ¶
Package log provides logger initialize utilities for the whole project. It will create and set proper logger instances according to config. The underlying logging tool is `zap`. In this package, we config it and also make some extensions for it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLoggers ¶
InitLoggers initializes all logger instances according to user-provided configs Note that this function is protected by a `sync.Once`.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package logger holds the mostly used logger instance `GlobalLogger`
|
Package logger holds the mostly used logger instance `GlobalLogger` |
Package util provides logger config and config validation utilities.
|
Package util provides logger config and config validation utilities. |
Click to show internal directories.
Click to hide internal directories.