logger

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

func MustInitLogger(json bool) *zap.Logger

MustInitLogger initializes a logger and panics in case of an error.

func MustInitVerboseLogger

func MustInitVerboseLogger(json bool) *zap.Logger

MustInitVerboseLogger initializes a verbose logger and panics in case of an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL