From the course: ASP.NET Core: Health Checks and Logging
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Configuring logging - ASP.NET Core Tutorial
From the course: ASP.NET Core: Health Checks and Logging
Configuring logging
- [Instructor] Before we have a look at a couple of configuration options for logging. Let's change our simple implementation a little bit and change this to an error. And then we can run this. And once again the browser window opens to Console Windows open as well. And let's have a look at the API Console Window, because we see the different colors here. We see our error for our fake argument exception and we also see that entity framework core issues warning that's because we're using the decimal property price here in our model and do not provide any precision which could turn into issues with the database. We intentionally put this in here. So you see it as a warning and something failed. And for those levels, if we go into Windows built in event viewer, go to Windows logs and application then, well, you see that we now have an error in here. The system Acrobat except should be just set up. We also get the warning in…
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)
-