Sitemap
Bits and Pieces

Insightful articles, step-by-step tutorials, and the latest news on full-stack composable software development

Follow publication

Logging: Best Practices for Node.JS Applications

8 min readSep 5, 2019

--

Tip: Optimize teamwork by using the right tools for code-sharing

Components with Bit: Easily share across projects as a team

What are the logs and their importance?

You will achieve ideal logging setup only when, without using the debugger, you can find an issue by going through logs and you know what and where things went wrong.

Best practices

1) Three important parts of logs

2) What and how to log?

3) Sensitive information

3) Correct usage of log levels

Ideally, the production app should have close to zero error logs.

4) Don’t use console.log

5) Performance impact

--

--

Bits and Pieces
Bits and Pieces

Published in Bits and Pieces

Insightful articles, step-by-step tutorials, and the latest news on full-stack composable software development

Mahesh Haldar
Mahesh Haldar

Written by Mahesh Haldar

Author | Senior Software Engineer @sennder | Berlin 🇩🇪 | ex @McKinsey | ex Jago Bank. Hindi Story teller at https://www.youtube.com/c/eklifafa