Most REST API bugs are mundane. A mobile app on a weak connection retries a POST, and the customer ends up with two orders. An endpoint returns 200 OK with “success”: false in the body, so every client has to parse a message string to learn that something failed. Someone renames a JSON field on …
Restful API
Asp.Net Core 2 Logging With Serilog And Microsoft SQL Server Sink
In this post, I’m going to describe how we can configure Serilog with Asp.Net Core 2 web and Api projects. I also configure Serilog to work with SQL Server database to store the logging information. Then I’ll write an extension method and use the built-in exception handling middleware to log exceptions in production environments. What …
