Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TooLongLogger ¶
type TooLongLogger struct {
// contains filtered or unexported fields
}
func NewLogIfTooLong ¶
func NewLogIfTooLong(interval time.Duration, format string, args ...any) *TooLongLogger
NewLogIfTooLong will start a background goroutine that will log a message every interval if the duration since start is greater than interval. The returned struct should be used to stop the background goroutine.
func (*TooLongLogger) Stop ¶
func (l *TooLongLogger) Stop()
Stop will stop the background goroutine and wait for it to finish.
Click to show internal directories.
Click to hide internal directories.