7 Serilog Best Practices for Better Structured Logging
24.4 هزار بار بازدید -
8 ماه پیش
-
☄️ Master the Modular Monolith
☄️ 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: Patreon: 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/...
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
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: Patreon: 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/...
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
8 ماه پیش
در تاریخ 1402/10/26 منتشر شده
است.
24,429
بـار بازدید شده