- Home
- .NET coding challenges
- Log levels for logging in ASP.NET Core
Log levels for logging in ASP.NET Core
In ASP.NET Core, you can use the Microsoft.Extensions.Logging
NuGet package to write logs to a number of logging providers with ILogger
.
Within ILogger
, there are a number of log levels that can be written as part of a log. These include:
- Warning
- Error
- Critical
- Debug
- Trace
- Information
Can you order these log levels in-order of severity level? Start with 0 being the least severe, and go up to 5 which will be the most severe.
Learn more about logging in .NET by watching our video:
Give us your anonymous feedback regarding this page, or any other areas of the website.
Latest challenges
Convert hours, minutes and seconds into a time formatted string
Pass in the hours, minutes and seconds into a method and get it to return a time formatted string which should include leading zeros.
Contains online code editor
Work out the number of days between two dates
Write a C# function to work out the difference between two dates and return the number of days in this coding challenge.
Contains online code editor