logs

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tail

func Tail(ctx context.Context, path string, backfillLines int, pollInterval time.Duration) (<-chan string, error)

Tail streams a log file: first up to backfillLines of the existing tail, then each newly-appended line, on the returned channel. The channel is closed when ctx is cancelled or an unrecoverable read error occurs. Returns an error if the file cannot be opened. pollInterval controls how often appended bytes are polled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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