Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger() *zap.SugaredLogger
func SetupLogger ¶
SetupLogger sets up the global logger to be used in all the cli, configuring the logging level to debug whenever verbose is true, and info otherwise. This function will act as a no-op after the first time it is called. Returns an error in case could not be built from the configuration
Types ¶
type GenericLogger ¶
type GenericLogger interface { Warn(args ...interface{}) Warnf(template string, args ...interface{}) Info(args ...interface{}) Infof(template string, args ...interface{}) Debug(args ...interface{}) Debugf(template string, args ...interface{}) Error(args ...interface{}) Errorf(template string, args ...interface{}) Fatal(args ...interface{}) Fatalf(template string, args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.