Podcast: Play in new window | Download (Duration: 30:37 — 21.3MB)
Subscribe: Apple Podcasts | Google Podcasts | Spotify | Stitcher | Podchaser | Email | TuneIn | RSS
This week we’re talking Logging and Metrics in .NET Core. What to log, where to start, and what’s available.
What gets measured gets managed.
- If it compiles, ship it
- Hope it performs well
- When a bug is reported?
- Struggle to repeat it
- Fail miserably
- Weep in a corner
- Does it work? Does it perform?
- I think it works
- It might handle more than one user
- I haven’t heard from anyone
- What are logs?
- An error happened, what now?
- I can’t reproduce it
- Time to update my resume
- Metrics, metrics, metrics
- How many users can it handle?
- Where are the bottlenecks?
- Where do errors happen?
- What does the data tell us?
- Is the data meaningful?
- What needs our attention?
- Make informed decisions
- Consle.WriteLine
- ILogger
- Health Check Middleware
- App Metrics
- Application Insights
Resources
https://serilog.net/
https://www.app-metrics.io/
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-2.2
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-2.2
https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger?view=aspnetcore-2.2
“Tempting Time” by Animals As Leaders used with permissions – All Rights Reserved
An International Speaker, Author, and Microsoft MVP, John has been a professional developer since 1999. He has focused primarily on web technologies and currently focuses on C# and .NET Core in Azure. Clean code and professionalism are particularly important to him, as well as mentoring and teaching others what he has learned along the way.