You can also apply css styling to certain messages in the console, if you need something to stand out. Use console.log("%cTEXT", "color: purple; font-size: 20px")
Nothing special but it has some fancy feature (hide log on prod build).
This post make me realise i should add the table and dir consoles, even if they doesn't really need styling.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can also apply css styling to certain messages in the console, if you need something to stand out. Use
console.log("%cTEXT", "color: purple; font-size: 20px")
Yes! that's also a great way of identifying the log messages at different run points in your code for easy debugging.
Thank you!🚀
Sye
yep! I mistyped!
I've made a small npm package to better handle "tagged and colored" console.logs: npmjs.com/package/@pelv/frontlog
Nothing special but it has some fancy feature (hide log on prod build).
This post make me realise i should add the table and dir consoles, even if they doesn't really need styling.