DEV Community

Discussion on: Level up your JavaScript browser logs with these console.log() tips

Collapse
 
jakubkeller profile image
Jakub Keller

Do not write a wrapper around console.log, unless you're using an opinionated framework like React or Angular, which then you can expose the functionality via a custom, injectable service. Otherwise, do use console.log or any language equivalent and stay away from heavy-handed logging frameworks.