node.jsazurebunyanmorgan

Do you recommend using loggers like bunyan or morgan for application hosted on Azure App Services


I have Node.JS Application and I implemented Morgan and Bunyan logger in my application.

later on I published my application on Azure App services, Azure app services has Application Insights and log feature where it logs all the errors on my application and provides details about status of my application API calls ...etc. now I want to know do we still need to add loggers in our application, what do you suggest. Thanks.


Solution

  • If you're planning on deploying Node.js code on Azure I would recommend taking a look at a standard approach using Application Insights for your logging needs : more info here

    Unless you want to be cloud agnostic to eventually deploy on other cloud providers I would stick with standard approches and not add additional modules/layers.