Documentation ¶
Overview ¶
Package log centralises the logging infrastructure of the tool. It's based on uber zap library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Level is the atomic level that will be used for logging with the default // logger of the library. When injecting a new zap logger ensure the Level // field points to this one. // // Level is used by the cmd package when creating the root command, which // supports a flag to enable debug log level. Level = zap.NewAtomicLevelAt(zapcore.InfoLevel) )
Functions ¶
func S ¶
func S() *zap.SugaredLogger
S returns the zap sugared logger from the current logger instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.