tailLocal.go 406 B

1234567891011121314151617181920
  1. package main
  2. import (
  3. "fmt"
  4. "github.com/nxadm/tail"
  5. )
  6. 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"
  7. func main() {
  8. t, err := tail.TailFile(logFile, tail.Config{Follow: true})
  9. if err != nil {
  10. panic(err)
  11. }
  12. for line := range t.Lines {
  13. fmt.Println(line.Text)
  14. }
  15. }