Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[feature] auto group/indent messages #1373

Copy link
Copy link
@ddofborg

Description

@ddofborg
Issue body actions

Auto grouping/indenting log messages based on the end/start character of the message line. This is done by checking the last part of the message, in the example below it's .... When a message ends on ... level is increased. If the message starts with ... it's decreased.

This way is easier to see which operations are part of the same 'group'. You can also add colors for example.

Code:

log.info("level 1 op...")
log.info("level 2 op...")
log.info("level 3 op...")
log.info("level 3 msg 1")
log.info("level 3 msg 2")
log.info("...done, level 3")
log.info("...done, level 2")
log.info("...done, level 1")

Output:

2025-08-09 07:53:37 [INFO    ] level 1 op... [suffix]
2025-08-09 07:53:37 [INFO    ] | level 2 op [suffix]
2025-08-09 07:53:37 [INFO    ] | | level 3 op... [suffix]
2025-08-09 07:53:37 [INFO    ] | | | level 3 msg 1 [suffix]
2025-08-09 07:53:37 [INFO    ] | | | level 3 msg 2 [suffix]
2025-08-09 07:53:37 [INFO    ] | | ...done, level 3 [suffix]
2025-08-09 07:53:37 [INFO    ] | ...done, level 2 [suffix]
2025-08-09 07:53:37 [INFO    ] ...done, level 1 [suffix]

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureRequest for adding a new featureRequest for adding a new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.