Documentation ¶
Index ¶
- Variables
- func Debug(payload ...any)
- func Debugf(format string, a ...any)
- func Error(err any, message string)
- func ErrorWebf(err any, w http.ResponseWriter, format string, a ...any)
- func Errorf(err any, format string, a ...any)
- func Fatal(err any, message string)
- func Fatalf(err any, format string, a ...any)
- func GetLogo() string
- func HeaderInfof(format string, a ...any)
- func Info(message string)
- func Infof(format string, a ...any)
- func JsonValue(value any) string
- func Note(text string)
- func Notef(format string, a ...any)
- func PrintConnectStringTable(connectStrings types.ConnectStrings)
- func Question(text string)
- func SetLogLevel(lvl LogLevel)
- func SuccessF(format string, a ...any)
- func Warn(message string)
- func Warnf(format string, a ...any)
- type Generic
- type LogLevel
- type ProgressBar
- type Spinner
- func (p *Spinner) Debugf(format string, a ...any)
- func (p *Spinner) Errorf(err error, format string, a ...any)
- func (p *Spinner) Fatal(err error)
- func (p *Spinner) Fatalf(err error, format string, a ...any)
- func (p *Spinner) Stop()
- func (p *Spinner) Success()
- func (p *Spinner) Successf(format string, a ...any)
- func (p *Spinner) Updatef(format string, a ...any)
- func (p *Spinner) Warnf(format string, a ...any)
- func (p *Spinner) Write(text []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var NoProgress bool
NoProgress tracks whether spinner/progress bars show updates
View Source
var SkipLogFile bool
Functions ¶
func ErrorWebf ¶ added in v0.22.0
func ErrorWebf(err any, w http.ResponseWriter, format string, a ...any)
func HeaderInfof ¶
func PrintConnectStringTable ¶ added in v0.20.0
func PrintConnectStringTable(connectStrings types.ConnectStrings)
func SetLogLevel ¶
func SetLogLevel(lvl LogLevel)
Types ¶
type LogLevel ¶
type LogLevel int
const ( // WarnLevel level. Non-critical entries that deserve eyes. WarnLevel LogLevel = iota // InfoLevel level. General operational entries about what's going on inside the // application. InfoLevel // DebugLevel level. Usually only enabled when debugging. Very verbose logging. DebugLevel // TraceLevel level. Designates finer-grained informational events than the Debug. TraceLevel )
func GetLogLevel ¶
func GetLogLevel() LogLevel
type ProgressBar ¶ added in v0.20.0
type ProgressBar struct {
// contains filtered or unexported fields
}
func NewProgressBar ¶ added in v0.20.0
func NewProgressBar(total int64, format string, a ...any) *ProgressBar
func (*ProgressBar) Fatalf ¶ added in v0.20.0
func (p *ProgressBar) Fatalf(err error, format string, a ...any)
func (*ProgressBar) Stop ¶ added in v0.20.0
func (p *ProgressBar) Stop()
func (*ProgressBar) Success ¶ added in v0.20.0
func (p *ProgressBar) Success(text string, a ...any)
func (*ProgressBar) Update ¶ added in v0.20.0
func (p *ProgressBar) Update(complete int64, text string)
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func NewProgressSpinner ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.