Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
6 years ago | |
|---|---|---|
| .. | ||
| ratelimiter | 6 years ago | |
| util | 6 years ago | |
| watch | 6 years ago | |
| winfile | 6 years ago | |
| .gitignore | 6 years ago | |
| .travis.yml | 6 years ago | |
| CHANGES.md | 6 years ago | |
| Dockerfile | 6 years ago | |
| LICENSE.txt | 6 years ago | |
| Makefile | 6 years ago | |
| README.md | 6 years ago | |
| appveyor.yml | 6 years ago | |
| tail.go | 6 years ago | |
| tail_posix.go | 6 years ago | |
| tail_windows.go | 6 years ago | |
A Go package striving to emulate the features of the BSD tail program.
t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
for line := range t.Lines {
fmt.Println(line.Text)
}
See API documentation.
Tail comes with full support for truncation/move detection as it is
designed to work with log rotation tools.
go get github.com/hpcloud/tail/...
This package needs assistance for full Windows support.
类似 Grafana 可接入多种数据源,Grafana 擅长可视化,夜莺擅长告警管理
Go SQL Text Python PLSQL other