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
關注者數98
派生數507
提交數252
已啟用問題?
問題數86
打開的問題數48
拉請求數53
打開的拉請求數27
關閉的拉請求數26
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?