Documentation ¶
Overview ¶
Package logger provides functionality related to logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLoggerInRootCmd ¶
func InitLoggerInRootCmd(cmd *cobra.Command, l *zap.SugaredLogger)
InitLoggerInRootCmd inits the provided logger instance based on command's flags. This is meant to be run by the root command in PersistentPreRun step.
func MustInitLogger ¶
MustInitLogger initializes logger and panics in case of an error. // FIXME Test this.
func MustInitVerboseLogger ¶
MustInitVerboseLogger initializes a verbose logger and panics in case of an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.