Build an ASP.NET Core 3.1 Web API and Consume with MVC (Web Api Error Logging) - [Part 10]

Build an ASP.NET Core 3.1 Web API and Consume with MVC (Web Api Error Logging) - [Part 10]

Build an ASP.NET Core 3.1 Web API and Consume with MVC (Web Api Error Logging) - [Part 10]. In my previous (ninth) episode, I walked through editing the appsettings.json file to include the connection string for the database. In this episode, I shall discuss the error logging in the Web Api project using the Serilog NuGet package. Serilog is a newer logging framework. 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.

Latest: https://youtu.be/LyVZySzKoI8 (Unit Testing Blazor ASP.NET 5) Welcome to the tenth 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 (ninth) episode, I walked through editing the appsettings.json file to include the connection string for the database. In this episode, I shall discuss the error logging in the Web Api project using the Serilog NuGet package. Serilog is a newer logging framework. 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 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 10 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 GitHub Source Code: https://github.com/krchome/WebAPICoreMVCClient Source Code (ver ASP.NET 5.0): https://github.com/krchome/WebAPIWithMVCClient-Ver5.0 https://www.skillshare.com/r/profile/Kaushik-Roy-Chowdhury/5724896

kaushikroychowdhaury aspnettutorials webapitutorials repositorypattern mvc

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Build an ASP.NET Core 3.1 Web API and Consume MVC (IOrderRepository Interface) - [Part 8]

Build an ASP.NET Core 3.1 Web API and Consume MVC (IOrderRepository Interface) - [Part 8]. 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.

Build an ASP.NET Core 3.1 Web API and MVC (ICustomerRepository Interface) - [Part 7]

Build an ASP.NET Core 3.1 Web API and MVC (ICustomerRepository Interface) - [Part 7]. In this episode, I shall create the ICustomerRepositoryInterface which will be implemented by the CustomerRepository class later. 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.

Build an ASP.NET Core 3.1 Web API and Consume with MVC (Customer Repository) - [Part 12]

Build an ASP.NET Core 3.1 Web API and Consume with MVC (Customer Repository) - [Part 12]. In this episode, I shall walk you through the process of creating the customer repository with the initialization of the CustomerRepository class and writing the method to get all customers.

Build an ASP.NET Core 3.1 Web API and MVC (Creating the Order Repository) - [Part 14]

Build an ASP.NET Core 3.1 Web API and MVC (Creating the Order Repository) - [Part 14]. In this episode, I shall walk you through the process of creating the order repository with the initialization of the OrderRepository class and writing the method to get all orders for a customer.

Build an ASP.NET Core 3.1 Web API and MVC (Integrating Serilog Logging) - [Part 11]

Build an ASP.NET Core 3.1 Web API and MVC (Integrating Serilog Logging) - [Part 11]. 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.