



The different levels of logging give us a way to treat log events differently. In the built-in Node.js console log, all logging levels equate to either log or error. Although there’s no general standard, here are common levels of Node.js logging:Įach of these can be loosely correlated with a specific purpose. There are a few key categories of logging to consider, and each has its own purpose. Node.js logging has to be done purposefully. What should I log?ĭeciding what to log is fairly important. To get the insights and value you need from your logs, you need to send them to log management tools for further analysis and reporting. And to do that, we need to log the right things. But you’ll only realize your logs’ value when they’re properly analyzed. Marketers want to track the performance of various features that relate to advertising campaigns.Īnyone with a vested interest in the company can benefit from insights that logs can provide. Product managers and UX designers use logs for planning and design. Operations engineers and developers use logs for debugging.
