logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Verbose      bool
	Spinner      *spinner.Spinner
	SpinnerTitle string
	LogBuffer    *strings.Builder
	Buffering    bool
}

func NewLogger

func NewLogger(verbose bool) Logger

func (*Logger) Buffer

func (l *Logger) Buffer()

func (*Logger) EmptyLine

func (l *Logger) EmptyLine()

func (*Logger) Flush

func (l *Logger) Flush()

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...any)

func (*Logger) PrintfV

func (l *Logger) PrintfV(format string, args ...any)

func (*Logger) Separator

func (l *Logger) Separator()

func (*Logger) SetSpinnerMessage

func (l *Logger) SetSpinnerMessage(message string)

func (*Logger) StartSpinner

func (l *Logger) StartSpinner(title string)

func (*Logger) StopSpinner

func (l *Logger) StopSpinner(finalMessage string)

func (*Logger) Title

func (l *Logger) Title(title string)

Jump to

Keyboard shortcuts

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