Skip to content

Support multiline for grep output #332

@NamekMaster

Description

@NamekMaster

Is your feature request related to a problem? Please describe.
When the grep output contains some java exception stack traces, it only display the first line.

Describe the solution you'd like
Add an option to support multiline for grep output to display whole log message.

Additional context
For example, I want to grep the log with text Caused by, it only displayed the matched one line.

Image

The stack traces are multiline as shown below:
Image

I actually want to see the whole message of a log item even if the matched text is in the middle of the whole log message. Just like the multiline option in highlight settings.

Another example:
Sometimes I want to filter logs by log level. But grep the text [ERROR ] only display the first line. This is a very useful function to quickly check log messages for a specific level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions