Documentation
¶
Index ¶
- func ChunkSlice(slice []api.DVCEvent, chunkSize int) [][]api.DVCEvent
- func Debugf(format string, a ...any)
- func Errorf(format string, a ...any) error
- func Infof(format string, a ...any)
- func Printf(format string, a ...any)
- func SetLogger(log Logger)
- func Warnf(format string, a ...any)
- type DiscardLogger
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiscardLogger ¶
type DiscardLogger struct{}
func (DiscardLogger) Debugf ¶
func (DiscardLogger) Debugf(_ string, _ ...any)
func (DiscardLogger) Infof ¶
func (DiscardLogger) Infof(_ string, _ ...any)
func (DiscardLogger) Printf ¶
func (DiscardLogger) Printf(_ string, _ ...any)
func (DiscardLogger) Warnf ¶
func (DiscardLogger) Warnf(_ string, _ ...any)
type Logger ¶
type Logger interface { // Printf - Straight print passthrough Printf(format string, a ...any) // Infof - Info level print Infof(format string, a ...any) // Debugf - Debug level print, mostly used for information/tracing Debugf(format string, a ...any) // Warnf - Warn level print, something that might be a problem Warnf(format string, a ...any) // Errorf - Error level print - returns an error Errorf(format string, a ...any) error }
Click to show internal directories.
Click to hide internal directories.