glogg icon indicating copy to clipboard operation
glogg copied to clipboard

Be able to trim the file down

Open gap777 opened this issue 6 years ago • 5 comments

I want to be able to more clearly see the parts of the log file that are relevant for my current investigation/issue. Therefore, I want to be able to search for and delete lines that match a pattern. The general workflow is

  1. Look for a pattern to match lines that I'm confident are not related to my issue
  2. Find those lines
  3. Remove them.
  4. Goto 1.

After a few cycles of this, I strip out the noise in the logs and can more clearly follow the flow of steps the users were taking.

gap777 avatar Jul 25 '19 14:07 gap777

https://github.com/variar/klogg/issues/85 helps doesn't really address this issue.... the use case is that a given pattern can be identified of things obscuring the information of interest. But there's not a pattern that can the things of interest directly (such that they could be searched for, found, selected, and copied+pasted into a new document).

gap777 avatar Aug 16 '19 15:08 gap777

Can you suggest a UX for how this functionality would tie into glogg? Maybe I can contribute.

gap777 avatar Aug 19 '19 14:08 gap777

There are several requests that if implemented can be used to do this. variar/klogg#73 suggests to add hide filters that should work like current highlighters but instead of colorization just remove matching lines from view. This can be tricky as currently highlighting is done when drawing text. Then there is variar/klogg#22 with idea of adding additional text input for regular expression to exclude matching lines. I think that having this “exclude” regex thing is good and rather easy to implement, I might do it after current vacation in a week or two, but pull requests are always welcome.

variar avatar Aug 20 '19 16:08 variar

I was wondering if this is still being considered. It would be a great improvement to be able to remove certain lines from the log view dynamically!

AlexDM0 avatar Jan 08 '21 12:01 AlexDM0

Hiding with highlighters-like mechanism leads to some unexpected and hard to fix side effects. Regex to exclude some lines from filtered view are on my todo list for next klogg release.

variar avatar Jan 09 '21 07:01 variar