log

package
v0.0.0-...-bd484e7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileHook

func NewFileHook(file io.Writer, level logrus.Level, formatter logrus.Formatter) *fileHook

func NewFileHookWithNewlineTruncate

func NewFileHookWithNewlineTruncate(file io.Writer, level logrus.Level, formatter logrus.Formatter) *fileHook

func SetupFileHook

func SetupFileHook(baseDir string) func()

func SetupOutputHook

func SetupOutputHook(logLevel string)

func StopSpinner

func StopSpinner(spinner *Spinner, err error) error

Types

type Spinner

type Spinner struct {
	Spinner                                         *spinner.Spinner
	ProgressMessage, SuccessMessage, FailureMessage string
}

func NewSpinner

func NewSpinner(progressMessage, successMessage, failureMessage string) *Spinner

Jump to

Keyboard shortcuts

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