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
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:
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: