logger

package
v1.122.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 9 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()

func Warnf

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

Types

type CLILogger

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

func NewCLILogger

func NewCLILogger(w io.Writer) *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) ActionWithoutSpinnerWarning

func (l *CLILogger) ActionWithoutSpinnerWarning(msg string, c *color.Color, 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) Errorf

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

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) IsTerminal

func (l *CLILogger) IsTerminal() bool

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