tail

Go package for reading from continously updated files (tail -f)

Github星跟踪图

Build Status
Build status

Go package for tail-ing files

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.

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 for full Windows support.

主要指标

概览
名称与所有者hpcloud/tail
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2013-02-05 00:28:03
推送于2022-10-25 19:40:21
最后一次提交2018-05-14 22:44:41
发布数2
最新版本名称v1.0.0 (发布于 )
第一版名称v0 (发布于 2015-07-03 14:21:07)
用户参与
星数2.8k
关注者数96
派生数509
提交数252
已启用问题?
问题数86
打开的问题数48
拉请求数53
打开的拉请求数26
关闭的拉请求数27
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?