flag

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggerFlagSet

func NewLoggerFlagSet(logger *LoggerFlag) *pflag.FlagSet

Types

type LoggerFlag

type LoggerFlag struct {
	// contains filtered or unexported fields
}

func (*LoggerFlag) Formatter

func (f *LoggerFlag) Formatter() logrus.Formatter

Formatter returns the logrus.Formatter for selected type.

func (*LoggerFlag) Logger

func (logger *LoggerFlag) Logger() log.Logger

func (*LoggerFlag) Verbosity

func (f *LoggerFlag) Verbosity() logrus.Level

Jump to

Keyboard shortcuts

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