Logging from ASP.NET Core with Elmah.io
Log and log often ~ Nobody said that. There's a quote that says "You can't improve what you can't measure". Logging events in web apps is one of those things developers tend to underestimate. In this tutorial, I will explain shortly how to implement Elmah in ASP.NET Core for logging errors, important info, warnings, or any other kind of level.... and send it to the Elmah.io cloud service. You are maybe wondering, why Elmah.io? there are others Third-party logging providers, but I chose this for 4 main reasons: * Vast documentation. * Public and private support of the product itself. * Cool user interface. * Cost (a freemium pricing model) free plan discontinued :( First step: get everything ready with an Elmah.io account, go directly to their website and sing up. Once you are registered, sing in --> Dashboard --> click on the gear symbol of the organization --> API Keys. Now create your API or use the default one: Second Step: To save y