Chakroun-Anas / turbo-console-log

593 stars 141 forks source link

Smarter logging #14

Open IceSentry opened 6 years ago

IceSentry commented 6 years ago

I personnally use vscode and your extension seems to be the best for what it does.

On atom there is this extension https://github.com/vishysank/console-log-atom

It features smarter logging, like for example if you try to log a condition it will log the condition and also log a message when the condition passes. It also JSON.stringify() when logging objects. There are other features just look at the readme

Do you think this would be doable with your extension?

jnouza commented 6 years ago

JSON.stringify() would be very helpfull.

Chakroun-Anas commented 6 years ago

Hello,

First thank you very much for you feedback.

For objects logging, i think it would be very useful to have the possibility of wrapping them in JSON.stringify() when desired.

For function logging, currently when you select a variable within a function (It can be one of its parameters or just inside its block), and hit ctrl + alt + l, you get automatically the function name in the generated log, so its fair enough to say that's we have already this one with a better integration ^_^

For condition log, having a log with the condition and its value is sufficient enough, so i don't really see what is the added value here.

Thank you again for your feedback.

oleg-koval commented 6 years ago

For objects logging, i think it would be very useful to have the possibility of wrapping them in JSON.stringify() when desired.

Would be really helpful to have this feature 👍