Title

Message

Confirm

<< DiscussionsReply

Hightlight rule to show current line and previous (or next) lines

Niko Verbeke's profile on WallpaperFusion.com
Hello;

Would it be possible to show a number of lines around a highlighted line?

A log file can contain errors and the statement causing the error would be a few lines above the error. For example.

Would it be possible to show a few lines before the actual error message? For example an additional configuration parameter in the highlight rule dialog: lines shown before or after the highlighted line.

Kind regards;

Niko
Mar 3, 2014 (modified Mar 3, 2014)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I like this idea a lot

I've added it to our list, and if we're able to implement it in a future version, we'll be sure to let you know!

As a workaround, what I currently do is select the highlighted line, then show all lines to look at the ones around it. It's a bit manual, but does the trick.

Thanks!
Mar 3, 2014 (modified Mar 3, 2014)  • #2
Avatar from Gravatar.com
Sun W. Kim
28 discussion posts
I'd like to vote this feature up as well. My use case is a Java error that has a long stack trace that I'd want to see.

egrep has this feature.

-A NUM, --after-context=NUM
Print NUM linesof trailing context after matchinglines.
Places a line containing -- betweencontiguous groups of
matches.

-B NUM, --before-context=NUM
Print NUM lines of leading context before matching lines.
Places a line containing -- betweencontiguous groups of
matches.
Jul 8, 2014  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Vote added, thanks for the extra info about your usage case!
Jul 10, 2014  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We've just released a new LogFusion beta version (http://www.logfusion.ca/Download) and there are two new options on the Settings > Log Settings tab for showing X number of lines before and after filter results

Thanks!
Jul 17, 2015  • #5
Niko Verbeke's profile on WallpaperFusion.com
Thanks for the update!
Love the follow up.
Keep up the good work!

Kind regards.
Jul 17, 2015  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No problem, glad to hear it. Have a great weekend!
Jul 17, 2015  • #7
Was this helpful?    
<< DiscussionsReply