Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingFunc ¶
type LoggingFunc func(string, ...interface{})
type ThrottledLogger ¶
type ThrottledLogger struct {
// contains filtered or unexported fields
}
ThrottledLogger is a logger that throttles the output, i.e. it only logs a message if a certain amount of time has passed since the last log message
func NewThrottledLogger ¶
func NewThrottledLogger(logger log.Logger, throttlingInterval time.Duration) *ThrottledLogger
func (*ThrottledLogger) Debugf ¶
func (t *ThrottledLogger) Debugf(format string, args ...interface{})
func (*ThrottledLogger) Infof ¶
func (t *ThrottledLogger) Infof(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.