7 Serilog Best Practices for Better Structured Logging
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt 📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ 🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic Structured logging is a practice where you apply the same format to all your log messages. All logs will follow a similar structure, allowing them to be treated like data sets. Using structured logging, you can search and analyze your logs more than simple text. Seq is a structured logging server that can store your application logs. You can then use Seq to search and analyze your logs in real time. I'll show you 7 best practices for better structured logging in this video. Check out my courses: https://bit.ly/3PupkOJ The .NET Weekly newsletter: https://www.milanjovanovic.tech Read my Blog here: https://www.milanjovanovic.tech/blog 5 Serilog Best Practices For Better Structured Logging https://www.milanjovanovic.tech/blog/5-serilog-best-practices-for-better-structured-logging Chapters 0:00 1 - Configure Serilog with application settings 1:40 2 - Use the appropriate minimum Log level 2:13 3 - Use Enrichers for more detailed logs 2:46 4 - Use Serilog Request Logging 3:16 5 - Add CorrelationId to your logs with LogContext 5:03 6 - Log important application events 9:45 7 - Use Seq for local development
Download
0 formatsNo download links available.