- 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:
Latest challenges
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
Removing the last character from a string
This coding challenge involves writing a C# method that will removing the last character from a string and returning the value.
Contains online code editor