Chakroun-Anas / turbo-console-log

588 stars 140 forks source link

[feature request] allow emojis as prefix: console.log('🟠', myVar), #193

Open valMn opened 1 year ago

valMn commented 1 year ago

Hi Chakroun

First of all, great work on the Console Log extension! So useful.

Before discovering your extension I used to use colorful emojis before each logged value. e.g. console.log('🟠', myVar), console.log('🟥', myOtherVar) This is useful for quickly identifying multiple logs without reading the text and matching them with the code.

Can we have the option to add an array of icons, not just one 🚀 icon ? Each console.log would use an icon in order and when you get to the end of the array, the next console.log would use two icons, three icons, etc, e.g.

For [🟠, 🔵]

console.log('🟠', foo), console.log('🔵', bar), console.log('🟠🟠', baz) console.log('🔵🔵', qux) console.log('🟠🟠🟠', etc),

image

Many thanks!

Valentin

farhadh commented 1 year ago

Hi @valMn!

Would you please elaborate a bit more regarding the point of having colorful emojis prefixes?

ETA:

This is useful for quickly identifying multiple logs without reading the text and matching them with the code.

I hear what you say, but the way you described your requested feature seems to me that the user doesn't have control to like color-code or emoji-code their log messages. As the extension would pick the next emoji in the array.

valMn commented 1 year ago

It's useful when logging multiple items over various files. The user should be able to define their own array of emojis.

zhanxiaoge commented 1 year ago

This is a good idea, but it requires setting the maximum value, and starting from 1 again when the maximum value is reached.