1. Let's Strat Internship of NodeJS Proj

             

           For the first week of our internship, we were introduced to the company & the managers of the company.

 

Following a detailed orientation to the department's internship program, we received our first assignment. We were told to learn about Node.js, Express.js, API, Postman, NPM & regarding JSON data. We were also told to perform basic operations in Node.js.

 

We was more about knowing & learning, from scratch, Node.js & terms related to Node.js which would be helpful and can be used in one's project.




1. Use a Node.js Logging Library



            Node.js developers tend to rely on the runtime's console methods (such as console.log()) to log events since it is built into the runtime, and offers a familiar API similar to the JavaScript console mechanism provided by web browsers.

            While console.log() has its uses, it is not an adequate solution for implementing logging in a production application. It lacks support for features and configuration options that are considered essential to a good logging setup. For example, console methods do not support log levels like warnerror or debug, despite the provision of methods like console.warn()console.error(), and console.debug(), respectively. Those are simply functions that print to the standard output or standard error without indicating log severity.

npm install winston




Comments

Popular posts from this blog

10. Debugging in Visual Studio Code

6. How to setup a local MongoDB Connection

11. Overview of Project Deployment Using Heroku