logtail

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTailLines    = 20
	DefaultPollInterval = 250 * time.Millisecond
	ChunkSize           = 8192
)

Variables

This section is empty.

Functions

func Follow

func Follow(path string, tailLines int) error

Follow opens a file, shows the last N lines formatted, then follows for new lines.

func ReadLastLines

func ReadLastLines(f *os.File, n int) []string

ReadLastLines reads the last N lines from a file without loading the entire file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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