tail

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

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerhpcloud/tail
Primary LanguageGo
Program languageGo (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2013-02-05 00:28:03
Pushed At2022-10-25 19:40:21
Last Commit At2018-05-14 22:44:41
Release Count2
Last Release Namev1.0.0 (Posted on )
First Release Namev0 (Posted on 2015-07-03 14:21:07)
用户参与
Stargazers Count2.8k
Watchers Count98
Fork Count507
Commits Count252
Has Issues Enabled
Issues Count86
Issue Open Count48
Pull Requests Count53
Pull Requests Open Count27
Pull Requests Close Count26
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private