Documentation
¶
Index ¶
- type Log
- func (l *Log) Debugf(format string, a ...interface{})
- func (l *Log) Debugln(a ...interface{})
- func (l *Log) Errorf(format string, a ...interface{})
- func (l *Log) Errorln(a ...interface{})
- func (l *Log) Infof(format string, a ...interface{})
- func (l *Log) Infoln(a ...interface{})
- func (l *Log) Level() LogLevel
- func (l *Log) Printf(format string, a ...interface{})
- func (l *Log) Println(a ...interface{})
- func (l *Log) Printo(a ...interface{})
- func (l *Log) ProgressBar() pterm.ProgressbarPrinter
- func (l *Log) SetLevel(logLevel string) error
- func (l *Log) Spinner() pterm.SpinnerPrinter
- func (l *Log) Successf(format string, a ...interface{})
- func (l *Log) Successln(a ...interface{})
- func (l *Log) Table() pterm.TablePrinter
- func (l *Log) Warnf(format string, a ...interface{})
- func (l *Log) Warnln(a ...interface{})
- type LogLevel
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) ProgressBar ¶
func (l *Log) ProgressBar() pterm.ProgressbarPrinter
func (*Log) Spinner ¶
func (l *Log) Spinner() pterm.SpinnerPrinter
func (*Log) Table ¶
func (l *Log) Table() pterm.TablePrinter
type Logger ¶
type Logger interface {
Printf(format string, a ...interface{})
Println(a ...interface{})
Printo(a ...interface{})
Debugf(format string, a ...interface{})
Debugln(a ...interface{})
Infof(format string, a ...interface{})
Infoln(a ...interface{})
Successf(format string, a ...interface{})
Successln(a ...interface{})
Warnf(format string, a ...interface{})
Warnln(a ...interface{})
Errorf(format string, a ...interface{})
Errorln(a ...interface{})
Level() LogLevel
SetLevel(logLevel string) error
Spinner() pterm.SpinnerPrinter
ProgressBar() pterm.ProgressbarPrinter
Table() pterm.TablePrinter
}
Click to show internal directories.
Click to hide internal directories.