output

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoneLog  = 0
	ErrorLog = 1
	DebugLog = 2
	InfoLog  = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(string)
	Info(string)
	Error(string)
	StartProgress(string)
	StopProgress(string)
}

type Spinner

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

func NewSpinner

func NewSpinner(prefix, suffix string) *Spinner

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop(message string)

type StdoutLogger

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

StdoutLogger is a stdout logging implementation.

func NewStdoutLogger

func NewStdoutLogger(level int) *StdoutLogger

NewStdoutLogger returns a new stdout logger.

func (*StdoutLogger) Debug

func (s *StdoutLogger) Debug(msg string)

func (*StdoutLogger) Error

func (s *StdoutLogger) Error(msg string)

func (*StdoutLogger) Info

func (s *StdoutLogger) Info(msg string)

func (*StdoutLogger) StartProgress

func (s *StdoutLogger) StartProgress(msg string)

func (*StdoutLogger) StopProgress

func (s *StdoutLogger) StopProgress(msg string)

Jump to

Keyboard shortcuts

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