From Zero to Hero: Logging in .NET

From Zero to Hero: Logging in .NET

English | MP4 | AVC 1920×1080 | AAC 44KHz 2ch | 67 Lessons (2h 56m) | 686 MB

Master the feature every single .NET application needs
If there is one topic that every single .NET developer needs to be proficient at, it’s Logging. Logging is fundamental to every application that wants to run reliably in production. From APIs, and web apps, to Desktop apps and mobile apps or even games, logging should be in place to ensure you have the right information you need to know what is going on in your system. Logging will be crucial when something inevitably goes wrong and you need to troubleshoot it. In modern .NET, we are blessed with an excellent built-in logger, but it is also essential to be proficient in Serilog, the most popular logging library. In this course, Nick will translate years of valuable logging knowledge gained in the field, working on real projects so you can follow the path of success.

Table of Contents

1 Welcome
2 What will you learn in this course
3 Who is the course for and prerequisites
4 What is Logging
5 The simplest log entry
6 Log categories
7 Log Levels
8 Log providers (destinations)
9 Section recap
10 The modern .NET Logger
11 The log methods
12 Why simple logging isn’t good enough
13 What is Structured Logging
14 The message template
15 Log entry parameters
16 Understanding the Log Category
17 Working with the Log Level
18 The log event id
19 Section recap (2)
20 The logging packages
21 Host vs non-host console app
22 Customizing the loggers and providers
23 Log category configuration
24 Dealing with exceptions
25 What are Log filters
26 Section recap (3)
27 What is a provider
28 Built-in providers
29 Using the Application Insights provider in ASP.NET Core
30 Using the Application Insights provider in a console app
31 Editing registered providers
32 Creating our own logger provider
33 Section recap (4)
34 Log message template formatting
35 Dealing with complex objects
36 Log scopes
37 Checking for enabled log levels
38 Timed log entries
39 Changing the log level during runtime
40 Section recap (5)
41 What is Serilog
42 Creating a Serilog Logger
43 The concept of Sinks
44 The static Serilog logger
45 Simple Logger Dependency Injection
46 Integrating with the Microsoft Logger
47 File-based configuration
48 Log enrichment
49 Integrating with Application Insights
50 Dealing with Structured Data
51 Transforming Structured Data
52 Manually enriching logs
53 Timed Operations
54 Masking sensitive logs
55 Asynchronous processing
56 Creating your own Sink
57 Section recap (6)
58 Why does it matter
59 The LoggerMessage.Define method
60 The logging source generator
61 Section recap (7)
62 What is monitoring
63 Alerting in Application Insights
64 Error-based alerts
65 Query-based alerts
66 Section recap (8)
67 Course conclusion

Homepage