Logging, Monitoring, and Telemetry in ASP.NET Core 6 with Serilog



Logging, Monitoring, and Telemetry in ASP.NET Core 6 with Serilog

Logging, Monitoring, and Telemetry in ASP.NET Core 6 with Serilog

Recording of my lectures at HTL Leonding 2021/22. You can find the course material on GitHub at https://github.com/rstropek/htl-leo-pro-5.

This week, we discuss logging, monitoring, and telemetry. After the chalkboard session, we dive into code. In this lecture, you learn how to add Serilog to your ASP.NET Core app. We use a sink to send log data to Seq and analyze it there.

00:00:00 Intro
00:00:17 Basic logging in ASP.NET Core 6
00:04:12 Adding Serilog to ASP.NET Core 6
00:08:54 Adding Seq sink
00:12:08 Setting up Serilog in ASP.NET Core 6
00:27:48 Adding metadata with IDiagnosticContext
00:32:21 Various logging techniques in ASP.NET Core
00:40:44 Log timings (performance) with Serilog