NickCarneiro / remtail

tail log files from multiple remote hosts
MIT License
137 stars 5 forks source link

Include filename in output prefix #10

Closed mjpitz closed 9 years ago

mjpitz commented 9 years ago

I hate how this diff worked out. Summary of change:

  1. With a single tail command, there was no easy way to determine the source of the data chunk coming in. To get the individual files, I broke it into multiple tail commands, but will re-use ssh connections for existing hosts.
  2. Colors are still done on a per-host basis, but filenames are included in the colored prefix
  3. Output is formatted as "[host] [filename] [content]", but I am open to an alternative format

Assigning to @NickCarneiro for review.

mjpitz commented 9 years ago

Hold off on this for now, need to make a change