Documentation
¶
Index ¶
- func Debug(msg string, fields ...zap.Field)
- func DebugEnabled() bool
- func Debugf(template string, args ...interface{})
- func Error(err error)
- func Errorf(template string, args ...interface{})
- func Info(msg string, fields ...zap.Field)
- func Infof(template string, args ...interface{})
- func SetDebug()
- func SetSilent()
- func Warnf(template string, args ...interface{})
- type CLILogger
- func (l *CLILogger) ActionWithSpinner(msg string, args ...interface{})
- func (l *CLILogger) ActionWithoutSpinner(msg string, args ...interface{})
- func (l *CLILogger) ActionWithoutSpinnerWarning(msg string, c *color.Color, args ...interface{})
- func (l *CLILogger) ChildActionWithSpinner(msg string, args ...interface{})
- func (l *CLILogger) ChildActionWithoutSpinner(msg string, args ...interface{})
- func (l *CLILogger) Debug(msg string, args ...interface{})
- func (l *CLILogger) Error(err error)
- func (l *CLILogger) Errorf(msg string, args ...interface{})
- func (l *CLILogger) Finish()
- func (l *CLILogger) FinishChildSpinner()
- func (l *CLILogger) FinishSpinner()
- func (l *CLILogger) FinishSpinnerWithError()
- func (l *CLILogger) FinishSpinnerWithWarning(c *color.Color)
- func (l *CLILogger) Info(msg string, args ...interface{})
- func (l *CLILogger) Initialize()
- func (l *CLILogger) IsTerminal() bool
- func (l *CLILogger) Silence()
- func (l *CLILogger) SlogHandler() slog.Handler
- func (l *CLILogger) Verbose()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugEnabled ¶ added in v1.130.0
func DebugEnabled() bool
DebugEnabled returns true if debug logging is enabled.
Types ¶
type CLILogger ¶
type CLILogger struct {
// contains filtered or unexported fields
}
func NewCLILogger ¶
func (*CLILogger) ActionWithSpinner ¶
func (*CLILogger) ActionWithoutSpinner ¶
func (*CLILogger) ActionWithoutSpinnerWarning ¶
func (*CLILogger) ChildActionWithSpinner ¶
func (*CLILogger) ChildActionWithoutSpinner ¶
func (*CLILogger) FinishChildSpinner ¶
func (l *CLILogger) FinishChildSpinner()
func (*CLILogger) FinishSpinner ¶
func (l *CLILogger) FinishSpinner()
func (*CLILogger) FinishSpinnerWithError ¶
func (l *CLILogger) FinishSpinnerWithError()
func (*CLILogger) FinishSpinnerWithWarning ¶
FinishSpinnerWithWarning if no color is provided, color.FgYellow will be used
func (*CLILogger) Initialize ¶
func (l *CLILogger) Initialize()
func (*CLILogger) IsTerminal ¶
func (*CLILogger) SlogHandler ¶ added in v1.130.0
SlogHandler returns an slog.Handler that routes log records to the CLILogger. Debug-level records use Debug (respecting Verbose); Info and above use Info; Error uses Errorf.
Click to show internal directories.
Click to hide internal directories.