✅ What is the use of `LogLevel` type in C#?
I have also tried to use this type by adding the
using Microsoft.Extensions.Logging;
directive, but this shows me an error that the Extensions
type does not exist in the Microsoft
namespace. How to use this then?3 Replies
Microsoft.Extensions.Logging 9.0.0
Logging infrastructure default implementation for Microsoft.Extensions.Logging.
LogLevel
is an enum that contains... logging levels
LogLevel.Info
is for logging with the level of "information"
LogLevel.Warning
will log a warning
LogLevel.Error
will log an error
And so onokay
in retrospect, i should have looked at the docs carefully earlier
i thought this was something completely different