Logging in Node.js
Logging is one of the most undervalued and most important features of an enterprise
application. Logs is what makes a difference between spending sleepless nights
catching a mysterious bug or reading a clear message about what exactly caused
an application to crash.
It is not just important to write logs. It is important to write logs
in a right way. In this article we'll look at most popular Node.js logging solutions
and how to use them in your application.
console.log
-----------------
Option #1 - console.log().