logger

package
v1.38.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, fields ...zap.Field)

func Debugf

func Debugf(template string, args ...interface{})

func Error

func Error(err error)

func Errorf

func Errorf(template string, args ...interface{})

func Info

func Info(msg string, fields ...zap.Field)

func Infof

func Infof(template string, args ...interface{})

func SetDebug

func SetDebug()

Types

type CLILogger

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

func NewCLILogger

func NewCLILogger() *CLILogger

func (*CLILogger) ActionWithSpinner

func (l *CLILogger) ActionWithSpinner(msg string, args ...interface{})

func (*CLILogger) ActionWithoutSpinner

func (l *CLILogger) ActionWithoutSpinner(msg string, args ...interface{})

func (*CLILogger) ChildActionWithSpinner

func (l *CLILogger) ChildActionWithSpinner(msg string, args ...interface{})

func (*CLILogger) ChildActionWithoutSpinner

func (l *CLILogger) ChildActionWithoutSpinner(msg string, args ...interface{})

func (*CLILogger) Debug

func (l *CLILogger) Debug(msg string, args ...interface{})

func (*CLILogger) Error

func (l *CLILogger) Error(err error)

func (*CLILogger) Finish

func (l *CLILogger) Finish()

func (*CLILogger) FinishChildSpinner

func (l *CLILogger) FinishChildSpinner()

func (*CLILogger) FinishSpinner

func (l *CLILogger) FinishSpinner()

func (*CLILogger) FinishSpinnerWithError

func (l *CLILogger) FinishSpinnerWithError()

func (*CLILogger) FinishSpinnerWithWarning

func (l *CLILogger) FinishSpinnerWithWarning(c *color.Color)

FinishSpinnerWithWarning if no color is provided, color.FgYellow will be used

func (*CLILogger) Info

func (l *CLILogger) Info(msg string, args ...interface{})

func (*CLILogger) Initialize

func (l *CLILogger) Initialize()

func (*CLILogger) Silence

func (l *CLILogger) Silence()

func (*CLILogger) Verbose

func (l *CLILogger) Verbose()

Jump to

Keyboard shortcuts

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