Documentation
¶
Index ¶
- type BasicLogger
- type ProgressLogger
- func (p *ProgressLogger) ClearProgress()
- func (p *ProgressLogger) Error(msg string, args ...any)
- func (p *ProgressLogger) Info(msg string, args ...any)
- func (p *ProgressLogger) PrintProgress()
- func (p *ProgressLogger) ProgressRows() []iface.ProgressRow
- func (p *ProgressLogger) SetProgress(name string, percent int, displayText string)
- func (p *ProgressLogger) Title(msg string, args ...any)
- func (p *ProgressLogger) Warn(msg string, args ...any)
- type ZapLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicLogger ¶
type BasicLogger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(verbose bool) *BasicLogger
func (*BasicLogger) Debug ¶
func (l *BasicLogger) Debug(msg string, args ...any)
func (*BasicLogger) Error ¶
func (l *BasicLogger) Error(msg string, args ...any)
func (*BasicLogger) Info ¶
func (l *BasicLogger) Info(msg string, args ...any)
func (*BasicLogger) Title ¶
func (l *BasicLogger) Title(msg string, args ...any)
func (*BasicLogger) Warn ¶
func (l *BasicLogger) Warn(msg string, args ...any)
type ProgressLogger ¶
type ProgressLogger struct {
// contains filtered or unexported fields
}
func NewProgressLogger ¶
func NewProgressLogger(base iface.Logger, tracker iface.ProgressTracker) *ProgressLogger
func (*ProgressLogger) ClearProgress ¶
func (p *ProgressLogger) ClearProgress()
func (*ProgressLogger) Error ¶
func (p *ProgressLogger) Error(msg string, args ...any)
func (*ProgressLogger) Info ¶
func (p *ProgressLogger) Info(msg string, args ...any)
func (*ProgressLogger) PrintProgress ¶
func (p *ProgressLogger) PrintProgress()
func (*ProgressLogger) ProgressRows ¶
func (p *ProgressLogger) ProgressRows() []iface.ProgressRow
func (*ProgressLogger) SetProgress ¶
func (p *ProgressLogger) SetProgress(name string, percent int, displayText string)
func (*ProgressLogger) Title ¶
func (p *ProgressLogger) Title(msg string, args ...any)
func (*ProgressLogger) Warn ¶
func (p *ProgressLogger) Warn(msg string, args ...any)
type ZapLogger ¶
type ZapLogger struct {
// contains filtered or unexported fields
}
func NewZapLogger ¶
Click to show internal directories.
Click to hide internal directories.