Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hpcloud/tail
Go package for reading from continously updated files (tail -f)
https://github.com/hpcloud/tail
Last synced: 3 months ago
JSON representation
Go package for reading from continously updated files (tail -f)
- Host: GitHub
- URL: https://github.com/hpcloud/tail
- Owner: hpcloud
- License: mit
- Created: 2013-02-05T00:28:03.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2022-10-25T19:40:21.000Z (about 2 years ago)
- Last Synced: 2024-05-21T04:14:55.207Z (8 months ago)
- Language: Go
- Homepage:
- Size: 255 KB
- Stars: 2,678
- Watchers: 99
- Forks: 501
- Open Issues: 74
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-go - tail - Go package striving to emulate the features of the BSD tail program. (Logging / Search and Analytic Databases)
- my-awesome - hpcloud/tail - 10 star:2.7k fork:0.5k Go package for reading from continously updated files (tail -f) (Go)
- awesome-go - tail - Go package striving to emulate the features of the BSD tail program. Stars:`2.7K`. (Logging / Search and Analytic Databases)
- awesome-go - tail - Go package for reading from continously updated files (tail -f) - ★ 1236 (Logging)
- awesome-go-extra - tail - f)|2404|477|73|2013-02-05T00:28:03Z|2022-03-23T02:34:51Z| (Logging / Advanced Console UIs)
- awesome-go-zh - tail
README
[![Build Status](https://travis-ci.org/hpcloud/tail.svg)](https://travis-ci.org/hpcloud/tail)
[![Build status](https://ci.appveyor.com/api/projects/status/vrl3paf9md0a7bgk/branch/master?svg=true)](https://ci.appveyor.com/project/Nino-K/tail/branch/master)# Go package for tail-ing files
A Go package striving to emulate the features of the BSD `tail` program.
```Go
t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
for line := range t.Lines {
fmt.Println(line.Text)
}
```See [API documentation](http://godoc.org/github.com/hpcloud/tail).
## Log rotation
Tail comes with full support for truncation/move detection as it is
designed to work with log rotation tools.## Installing
go get github.com/hpcloud/tail/...
## Windows support
This package [needs assistance](https://github.com/hpcloud/tail/labels/Windows) for full Windows support.