filmov
tv
.NET logging to a database: Create a custom provider with ILogger (uses .NET Core)
![preview_player](https://i.ytimg.com/vi/XnVO-0faYDc/maxresdefault.jpg)
Показать описание
Using .NET logging to log to a database is possible by creating a custom logging provider using ILogger.
This is great if you're building a .NET Core application.
Creating a logging provider is relatively easy in ASP.NET Core as you can build the functionality around methods that are contained in the ILogger and ILoggerProvider interfaces.
It will walk you through how to configure and implement database logging through an ASP.NET Core app. There is functionality available to configure error handling on particular assemblies and namespaces.
As we are writing the log in JSON format, we'll show you how to query JSON strings if you're using SQL Server 2017, or above.
💻 Download the code example for this demo 💻
🎥 How ASP.NET Core logging works and use ILogger and ILoggerProvider to write a log 🎥
🎥 Create Your Own Logging Provider to Log to Text Files in .NET Core 🎥
📖 Learn .NET and C# with our online courses 📖
► Chapters
0:00 Coming up...
0:11 How to create a custom logging provider
0:54 Code walkthrough
4:24 Code demo
4:40 JSON in SQL Server
5:41 Other custom logging providers
#ilogger #aspnetcore #sqlserver
This is great if you're building a .NET Core application.
Creating a logging provider is relatively easy in ASP.NET Core as you can build the functionality around methods that are contained in the ILogger and ILoggerProvider interfaces.
It will walk you through how to configure and implement database logging through an ASP.NET Core app. There is functionality available to configure error handling on particular assemblies and namespaces.
As we are writing the log in JSON format, we'll show you how to query JSON strings if you're using SQL Server 2017, or above.
💻 Download the code example for this demo 💻
🎥 How ASP.NET Core logging works and use ILogger and ILoggerProvider to write a log 🎥
🎥 Create Your Own Logging Provider to Log to Text Files in .NET Core 🎥
📖 Learn .NET and C# with our online courses 📖
► Chapters
0:00 Coming up...
0:11 How to create a custom logging provider
0:54 Code walkthrough
4:24 Code demo
4:40 JSON in SQL Server
5:41 Other custom logging providers
#ilogger #aspnetcore #sqlserver
Комментарии