zarunbal / LogExpert

Windows tail program and log file analyzer.
Other
955 stars 163 forks source link

Feature request: highlight word/line - additional option/plugin: replace with... #93

Open sebastiansto opened 5 years ago

sebastiansto commented 5 years ago

Hi there,

I would like to have an additional option on highlighted word/lines: To replace it with a given word (or something like \n).

Why? In my case, we replace line breaks with a placeholder to avoid long big stacktraces all over our logs and to avoid parsing issues. But this is hardly readable in a single line in LogExpert. So I would like to replace the placeholder back to line breaks.

Another use case would be to remove unwanted artifacts out of the logs.

Best regards, Sebastian

zarunbal commented 5 years ago

thank you for the feature. The part with splitting in new lines could be tricky to implement

The part with the replacement of "characters", is related to #79

achimmihca commented 2 years ago

I think this would be a preprocessing of logs. Maybe one could add preprocessing rules, which also includes a rule to replace text (plain text or regex).

However, I am unsure if this is needed. And I fear it makes the whole text processing more complex because one could add new lines this way, which again must be viewed, suddenly the lines in LogExpert do not match the lines in the file, etc. etc. Overall, I argue against implementing this.

Either create your log in a better viewable format, or do preprocessing before opening it in LogExpert