Documentation
¶
Index ¶
- Variables
- func ConnectFileToVerboseLogOutput(filePath string) (close func(), err error)
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func GetLevel() logrus.Level
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type LoggerWriters
- type ProgressReader
- type Spinner
Constants ¶
This section is empty.
Variables ¶
View Source
var VerboseLogger = (*logrus.Logger)(nil)
View Source
var VerboseLoggerOutputs = (*LoggerWriters)(nil)
Functions ¶
Types ¶
type LoggerWriters ¶
type LoggerWriters struct {
// contains filtered or unexported fields
}
func NewLoggerOutputs ¶
func NewLoggerOutputs(logger *logrus.Logger) *LoggerWriters
func (*LoggerWriters) Add ¶
func (lw *LoggerWriters) Add(w io.Writer)
func (*LoggerWriters) Remove ¶
func (lw *LoggerWriters) Remove(w io.Writer)
func (*LoggerWriters) Set ¶
func (lw *LoggerWriters) Set()
type ProgressReader ¶ added in v0.0.86
type ProgressReader struct {
// contains filtered or unexported fields
}
func NewProgressReader ¶ added in v0.0.86
func NewProgressReader(reader io.Reader, totalSize int64, updateFunc func(percent int)) *ProgressReader
type Spinner ¶ added in v0.0.86
type Spinner struct {
// contains filtered or unexported fields
}
Spinner is a custom type that wraps a spinner with additional functionality.
func NewSpinner ¶ added in v0.0.22
NewSpinner creates a new Spinner instance with the specified message.
func (*Spinner) Start ¶ added in v0.0.86
func (sp *Spinner) Start()
Start begins the spinner animation.
func (*Spinner) Stop ¶ added in v0.0.86
func (sp *Spinner) Stop()
Stop stops the spinner animation and prints a completion message.
func (*Spinner) UpdateProgress ¶ added in v0.0.86
UpdateProgress updates the progress percentage displayed with the spinner.
Click to show internal directories.
Click to hide internal directories.