-
Course
- Core Tech
.NET Diagnostics for Applications: Best Practices
Issues in deployed applications can be difficult to diagnose. This course will teach you how to use capabilities in .NET to trace and instrument your applications in order to log the behavior of the system and diagnose problems.
What you'll learn
Software doesn’t always behave as expected. When problems occur, you need to understand the behavior of the deployed system in order to diagnose and solve issues with your code and data. In this course, .NET Diagnostics for Applications: Best Practices, you’ll learn to how to instrument and trace your code, in order to create useful diagnostics. First, you’ll learn how to instrument apps using classes in System.Diagnostics, like Debug, TraceSource, and DiagnosticSource. Next, you’ll discover the various destinations for TraceListeners and Logging Providers. Finally, you’ll explore how to instrument more complex, distributed applications using the Activity class and OpenTelemetry. When you’re finished with this course, you’ll have the skills and knowledge of instrumenting and tracing needed to implement diagnostics for .NET applications.
Table of contents
- Understanding Diagnostics in Applications | 6m 46s
- Logging Considerations | 7m 42s
- Diagnostics in .NET | 6m 41s
- Exploring the System.Diagnostics Namespace | 2m 1s
- Using Debug and Assert | 6m 16s
- Instrumenting Code with TraceSource | 9m 2s
- Listening for DiagnosticSource Events | 7m 7s
- Instrumenting Code Using DiagnosticSource | 2m 41s
- Understanding EventSource | 3m 1s
- Capturing EventSource Events | 5m 11s
- Instrumenting Code Using EventSource | 3m 59s
- The ILogger API | 4m 5s
About the author
Neil is a solutions architect and developer, with a passion for web development, architecture, and security. He has worked in large and small IT organizations, written articles on development, and spoken at local .NET user groups. Neil has several Microsoft Certifications, including MCPD, MCSA, and MCSD.
More Courses by Neil