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.

Understanding log levels

Understanding log levels - ASP.NET Core Tutorial

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

Start my 1-month free trial

Understanding log levels

- [Instructor] I've mentioned log levels before. There is half a dozen of these log levels so let's have a look at what they mean. I start counting with zero, not because I think that every counting should start with zero as doesn't seem sharp but on log levels in .NET, also have a numerical value. And those values start with zero and log levels zero is the trace log level, which is used for tracing. So really detailed information and that detailed information is so detailed that it's disabled by default. Also, you do not want to have this on a production system ever. There could also be security critical information in that output. So it's rather rare that you will see or use them. However, a bit more common is the debug log level which should only be used during debugging. So just gives us debug information again not on any productive system. The third level is one we actually already saw it's the information log level.…

Contents