Serilog Setup & Masking Sensitive Data in C# .NET

3 months ago
4

Serilog is one of the most popular logging libraries with tons of powerful capabilities. It allows you to take control over the log output by enriching logs with relevant contextual details to improve monitoring.

In a .NET 6 Web API, I configured Serilog based on real-world requirements. I setup the 'Sensitive Data Masking' enricher and the Application Insights sink.

Scaffolded .NET 6 Web API project with configured Serilog can be found on: https://www.patreon.com/posts/serilog-to-88191370?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link

If you found this video helpful, like & subscribe, that means a lot to me!
And you may buy me a coffee: https://www.buymeacoffee.com/kis.stupid

00:00 Intro
01:32 Docs overview
02:50 Serilog.AspNetCore
10:45 Sensitive Data Masking
21:40 Exploring a sample
24:25 Log levels Serilog
25:45 Http Request Logging
33:03 Application Insights
41:22 EF Core logs
44:00 Prep for PROD
46:35 Outro

#serilog #logging #monitoring #dotnet #csharp #webapi #api #webdevelopment #fullstack #fullstacksoftwareengineering #backend #docker #azure #containerization #devops #cloud #microsoft #linux

Loading comments...