RolandPheasant / TailBlazer

A modern file tail utility based on Rx.Net which show cases reactive programming and Dynamic Data (see https://github.com/RolandPheasant/DynamicData)
GNU General Public License v3.0
2.23k stars 249 forks source link

Search with context #186

Open tomasaschan opened 6 years ago

tomasaschan commented 6 years ago

When searching in logs, it is often valuable to show not only the line that matches the query, but also a few lines before and/or after it (much like grep can do).

Is this already possible? If so, how? If not, consider this a feature request :)

RolandPheasant commented 6 years ago

You can see the context by checking the show inline checkbox

tomasaschan commented 6 years ago

@RolandPheasant I know, and that's nifty :) But it doesn't really solve my problem, though, since it only shows one item at a time.

My use case here was trying to figure out if all the exceptions I saw in the log had the same trace events leading up to them, and for that I'd want to be able to list all lines matching exception, and one or two lines before them. (Then, I'd probably go on to see if that event sequence always caused an exception, in which case I'd search for foo-event-X and include one line after each match, to see if that line is a thrown exception.)