Chakroun-Anas / turbo-console-log

591 stars 141 forks source link

Have an option for console logs to be one-liners or two-liners (the variable being completely by itself in its own console.log) - not to be confused with wrapLogMessage option #164

Open jhoose opened 2 years ago

jhoose commented 2 years ago

I've tried a lot of console.log extensions and yours is the best so far!

It would be really great if there was an option to break the variable name and the variable value into 2 separate console logs. Sometimes it's hard to read long console.logs due to long variable names and a feature like that would really help

For example have an option if you want your console logs to be one-liners or two-liners: one-liner: let someReallyLongVariableName = this.whatever.thing; console.log("🚀 - someReallyLongVariableName", someReallyLongVariableName);

two-liner: let someReallyLongVariableName = this.whatever.thing; console.log("🚀 - someReallyLongVariableName"); console.log(someReallyLongVariableName);

I know there's a turboConsoleLog.wrapLogMessage (boolean) option but that's not exactly what I'm asking for. I'm hoping for the variable to print out completely by itself in its own console.log and the variable name and other info in a separate console.log right above it.