C
C#4w ago
tommy

✅ 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
Angius
Angius4w ago
Microsoft.Extensions.Logging 9.0.0
Logging infrastructure default implementation for Microsoft.Extensions.Logging.
Angius
Angius4w ago
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 on
tommy
tommyOP4w ago
okay in retrospect, i should have looked at the docs carefully earlier i thought this was something completely different
Want results from more Discord servers?
Add your server