tail icon indicating copy to clipboard operation
tail copied to clipboard

[Revamped] Go package for reading from continuously updated files (tail -f)

Results 30 tail issues
Sort by recently updated
recently updated
newest added

**Describe the bug** There seems to be race condition that leads to partial line reads. That is, if a line write is not atomic, I can read a partial line,...

enhancement

This new option allows the client to avoid the following race condition: 1. open file "example.txt" 2. StartTail("example.txt", Location: &SeekInfo(0, io.SeekEnd)) 3. append "hello\n" to example.txt Without SyncOpen, this sequence...

If you StartTail(file_x) following from end, and then append "hello\n" to file_x, there's a race that makes it uncertain whether your appended line will come out of the tail operation...

bug

Added new flag `-N` and config option `N` for start tailing from the last Nth line Works only if not set Location, so it is mutually exclusive to the Location...

**Describe the bug** If two (or more) goroutines are tailing the same file and one of them stops it impacts the other goroutine(s). **Expected behaviour** Other goroutines should keep on...

bug

Hello, Maybe I am I misunderstand the purpose of the StopAtEOF function, but my expectation is the file would continue reading until the end of the file is reached after...

This repository rebooted the development of tail and we mainly focus on issues and PR on nxadm/tail. However, we try follow and fix "historical" issues and PRs from the dormant...

abandoned-upstream

**Describe the bug** for example , if a log file is "abcd" sometimes it can only collect "abc" this is my code `tails, err := tail.TailFile(fileName, tail.Config{ ReOpen: true, Follow:...

bug

I faced the issue when trying set offset value too small, that cause return directly . So my change focus on handle this case

**Describe the bug** Simple code: ```golang func main() { if len(os.Args) != 2 { panic("not enough arguments") } filename := os.Args[1] t, err := tail.TailFile(filename, tail.Config{Follow: true, ReOpen: true}) if...

bug