Grokking Node.js
Vote

0% completed

​

Using Logging and Monitoring Tools in Production

console.log("Could not build report for user 7");
Could not build report for user 7

On a laptop, that line is enough. On a production server it is one line among thousands, and it cannot answer the questions you will ask when a user reports a problem: when did it happen, how serious was it, which request caused it, and what was the stack trace? This lesson replaces that line with logs that answer those questions, then adds a way to watch the memory of the running process.

What the Console Gives You

As the debugging chapter showed, the `console

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content