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

Configuring logging - ASP.NET Core Tutorial

From the course: ASP.NET Core: Health Checks and Logging

Start my 1-month free trial

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…

Contents