From the course: ASP.NET Core: Health Checks and Logging
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Summary of ASP.NET logging - ASP.NET Core Tutorial
From the course: ASP.NET Core: Health Checks and Logging
Summary of ASP.NET logging
- [Instructor] This concludes my coverage of ASP.NET Core logging features. You saw that ILogger support is already there. It's baked into the templates and you can use it right away with no or minimal configuration. The Log method, and its friends, such as log information, log critical, et cetera, they can log messages with a log level. We can use scopes, we can log exceptions, we can log placeholders, so a lot of features included. And we can log almost anywhere, including to files or to the Azure Cloud. Many more details and a lot of additional information is available in the official documentation Microsoft provides. I put you the link here, so if there's anything more you're interested in or the specifics of the APIs, this is your starting point for further experiments.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Understanding ILogger<T>1m 48s
-
(Locked)
What's in the template?6m 3s
-
(Locked)
Adding log entries5m 38s
-
(Locked)
Understanding log levels4m 48s
-
(Locked)
Configuring logging7m 40s
-
(Locked)
Logging to files7m 17s
-
(Locked)
Logging to Azure8m 12s
-
(Locked)
Using log scopes4m
-
(Locked)
Challenge: Add logging to the sample app1m 17s
-
(Locked)
Solution: Add logging to the sample app4m 26s
-
(Locked)
Summary of ASP.NET logging1m
-
(Locked)
-