As a newbie, I think I understand that lnav has identified some fixed fields and types that it will colorize. However, a workflow I prefer is to colorize lines based certain events. For instance, a line is colored Green when a service starts and Red when it stops. I'm guessing this functionality doesn't exist? If so, could it make sense to add a feature to colorize a line?
My thinking is that it could exist as another window, similar to the Text Filters. Or maybe just a extra field to IN filters that indicates a color. One challenge could be ordering might become important, as you might want to prioritize, and therefor need a way to reorder or specify priority. It could be used in combination with highlights and there probably needs to be a way to disable the current color filtering.
In case it's useful, here's a scenario that covers my usage. Some of this is already possible I believe.
I open up a set of logs covering the last week of logs and apply a scheme for troubleshooting a specific problem. My goal is to view a log and see if I can find a problem we've discovered in the past. This scheme/view can be shared with other users. When I apply the scheme, it filters out most of the noise and shows colorizes important events like starts/stops, performance based events, and interesting status messages. The log that was a 100,000 lines is condensed to 2000. I can easily enable an IN filter for various components using a keystroke, ctrl+u for our UX component, for instance. Next I want to follow the logging of a GUID which represents a transaction in our components, so that field is highlighted without losing the background color.
Is this something you think the lnav architecture would handle? Do you think it would straight forward to implement this if I were to try and fork the git project? Are there any plans like this or other related projects already?
Thanks, Paul