commit | 000912af8de2d2b9d184786b4cf4c3542b7884e5 | [log] [tgz] |
---|---|---|
author | Lucas Kacher <lucas@vsco.co> | Wed Mar 21 15:04:36 2018 |
committer | Lucas Kacher <lucas@vsco.co> | Wed Mar 21 15:19:57 2018 |
tree | 537fe4a013512d58365949c569190d3e2826b93d | |
parent | 37f4271387456dd1bf82ab1ad9229f060cc45386 [diff] |
fix fsnotify relocation * http://gopkg.in/fsnotify/fsnotify.v1 is the new location * see: https://github.com/go-fsnotify/fsnotify
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.