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 - ASP.NET Core Tutorial
From the course: ASP.NET Core: Health Checks and Logging
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.…
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)
-