Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to trim the file down #266

Open
gap777 opened this issue Jul 25, 2019 · 5 comments
Open

Be able to trim the file down #266

gap777 opened this issue Jul 25, 2019 · 5 comments

Comments

@gap777
Copy link

gap777 commented Jul 25, 2019

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
Copy link
Author

gap777 commented Aug 16, 2019

variar#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
Copy link
Author

gap777 commented Aug 19, 2019

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

@variar
Copy link
Contributor

variar commented Aug 20, 2019

There are several requests that if implemented can be used to do this. variar#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#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.

@AlexDM0
Copy link

AlexDM0 commented Jan 8, 2021

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!

@variar
Copy link
Contributor

variar commented Jan 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants