-
Notifications
You must be signed in to change notification settings - Fork 751
Open
Labels
featureRequest for adding a new featureRequest for adding a new feature
Description
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
Labels
featureRequest for adding a new featureRequest for adding a new feature