unjs / consola

🐨 Elegant Console Logger for Node.js and Browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for `console.group`

loicnestler opened this issue · comments

commented

Describe the feature

Whenever I add logging to complex parts of my applications, I tend to find it quite useful to group logs using console.group() and console.groupEnd(). This indents all logs between the .group() and .groupEnd() so that they stand out to "normal" logs.

To match consola's "logging – but elegant" philosophy, I thought of adding an even more visual aid to differentiate groups from each other: for example slightly tint the background of a groups indentation.

Feedback is highly appreciated! ✌🏻

Additional information

  • Would you be willing to help implement this feature?