Log App Startup in ASP.NET Core with Serilog

Опубликовано: 09 Июнь 2026
на канале: Ardalis
6,909
229

Log App Startup in ASP.NET Core with Serilog

Hey everyone, I'm Steve Smith aka ardalis, of NimblePros!

In this video we look at how to add logging during your ASP.NET Core app's startup in Program.cs using Serilog. Usually if there are problems when your app starts up, your application logger won't catch them because it's not yet running. That's why it makes sense to configure a separate logger specifically to wrap your application and its startup.

Get The Source Code

https://mailchi.mp/ardalis.com/youtub...

Links

https://serilog.net/

Check out my courses:
https://ardalis.com/training-classes/
https://www.pluralsight.com/authors/s...

Consulting and Training: https://NimblePros.com and @nimblepros

Developer Group Mentoring: https://devBetter.com

Free Weekly Email Tips:
https://ardalis.com/tips/

If you read this far, I hope you liked the video and consider subscribing to my channel!

Find me:
https://ardalis.com
  / ardalis  
https://github.com/ardalis
  / stevenandrewsmith  
https://bsky.app/profile/ardalis.com

#dotnet #deviq #ardalis #nimblepros #visualstudio #csharp #nuget #cleancode #logging #serilog #aspnetcore