[Part 11] - Build an ASP.NET Core 3.1 Web API and Consume with MVC (Inte...
Welcome to the eleventh episode of the Built a Web Api in ASP.NET Core 3.1 and Consume it using an MVC Client also in ASP.NET Core.
In my previous (tenth) episode, I discussed the error logging fundamentals in the Web Api project using the Serilog NuGet package. Serilog is a newer logging framework for .NET. In this episode, I shall discuss the integration process step by step in the Web Api project using Serilog NuGet package. Serilog is a newer logging framework for .NET. The problem with log files is they are unstructured text data. This makes it hard to query them for any sort of useful information.
As a developer, it would be nice to be able to filter all logs by a certain customer # or transaction #. The goal of structured logging is to solve these sorts of problems and allow additional analytics. Serilog was built with structured logging in mind and makes it easy to record custom object properties and even output your logs to JSON.
I shall build the project from scratch and walk you through the code explaining everything in the process. All the episodes will be in continuation from the previous ones, so it is highly recommended to be up to date with all the previous episodes before viewing this one.
Watch Part 10 of the Series: https://youtu.be/yzrpO2pJGaU
Watch Part 9 of the Series: https://youtu.be/iFhDv5p9pHI
Watch Part 8 of the Series: https://youtu.be/c6wRQnHfUo4
Watch Part 7 of the Series: https://youtu.be/eyylq3U1Qdg
Watch Part 6 of the Series: https://youtu.be/sJtvvFLfO0o
Watch Part 5 of the Series: https://youtu.be/cbA8FVMM-AY
Watch Part 4 of the Series: https://youtu.be/5G-mRxQA8rc
Watch Part 3 of the Series: https://youtu.be/q2jWdhtonEM
Watch Part 2 of the Series: https://youtu.be/loK_gzjngl0
Watch Part 1 of the Series: https://youtu.be/1iWkl3UIpG0
This is part 11 of a multi-part series of tutorials on How to Build a Web API and Consume it in ASP.NET Core MVC using SQL Server and ADO.NET. In this tutorial, I shall discuss the error logging in the Web Api project using the Serilog NuGet package.
The finished project will use client and server-side form validation techniques used in asp.net core by the MVC client. The Web API project will use Serilog for logging errors.
Like || Share || Spread || Love
Make sure you subscribe to our YouTube Channel and never miss our latest video:- http://bit.ly/Kaushik-roy-chowdhury-subscribe
For more updates Follow us on:-
Visit- https://kaushikroychowdhury.com
Facebook- https://www.facebook.com/deveducate
Twitter- https://twitter.com/krchome58
Linkedin- https://www.linkedin.com/in/chowdhurykaushik
Github- https://github.com/krchome
#KaushikRoyChowdhaury #AspNetTutorials #WebAPITutorials #MVC #RepositoryPattern
Comments
Post a Comment