logger

package
v0.0.0-...-b394286 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CfgLevel int

CfgLevel is the configured logging level

Functions

func AddFlags

func AddFlags(f *pflag.FlagSet)

Types

type Logger

type Logger interface {
	logrus.FieldLogger
	AddFlags(f *pflag.FlagSet)
	V(level int) logger.Verbose
	IsEnabled(level int) bool
}

Logger is the interface to interact with a CLI logging instance

func New

func New() Logger

New returns a Logger with the standard log.Logger

Jump to

Keyboard shortcuts

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