21 lines
406 B
Go
21 lines
406 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/nxadm/tail"
|
||
|
)
|
||
|
|
||
|
var logFile = "/home/outcast/.local/share/Steam/steamapps/compatdata/8500/pfx/drive_c/users/steamuser/My Documents/EVE/logs/Chatlogs/Etherium_Intel_20220207_154354_93488613.txt"
|
||
|
|
||
|
func main() {
|
||
|
t, err := tail.TailFile(logFile, tail.Config{Follow: true})
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
for line := range t.Lines {
|
||
|
fmt.Println(line.Text)
|
||
|
}
|
||
|
}
|