1 Star 0 Fork 0

杜少峰 / tail

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 883 Bytes
一键复制 编辑 原始数据 按行查看 历史
Nino Kodabande 提交于 2017-08-14 09:06 . Update README.md

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.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dushaofeng/tail.git
git@gitee.com:dushaofeng/tail.git
dushaofeng
tail
tail
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891