Log App Startup in ASP.NET Core with Serilog

Published: 21 December 2023
on channel: Ardalis
5,802
211

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


Watch video Log App Startup in ASP.NET Core with Serilog online without registration, duration hours minute second in high quality. This video was added by user Ardalis 21 December 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,80 once and liked it 21 people.