7 ms·
Loosely related: a few years ago I wanted a simpler alternative to some of the more feature-full log viewers out there so I threw together a tiny (50kb) app tha
by sisk 4y ago
Loosely related: a few years ago I wanted a simpler alternative to some of the more feature-full log viewers out there so I threw together a tiny (50kb) app that might be useful to some folks in here.
All it does is consistently colors the first field in a line from stdin so you can quickly see which log lines have the same first field.
I used it in combination with the parallel[0] command to prefix log lines by replica name when tailing logs across machines: https://github.com/jasisk/color-prefix-pipe https://github.com/jasisk/color-prefix-pipe
[0]: https://www.gnu.org/software/parallel/ https://www.gnu.org/software/parallel/
- hosteur 4y agoNice tool. You should really consider including a screenshot showing the actual coloured output on the GitHub README.