abfslog

package
v0.1.23-oss Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL