ExternalAnnotations icon indicating copy to clipboard operation
ExternalAnnotations copied to clipboard

Annotate `Microsoft.Extensions.Logging` extension methods such as `LogInformation`

Open TessenR opened this issue 4 years ago • 0 comments

There are lots of extension methods that do not allow null extension argument. Currently they don't have neither NRT annotations nor extension annotations so it leads to missing warnings when you call them on nullable objects e.g.

image

Would be nice to have them annotated. Here's the source code with all the methods https://github.com/aspnet/Logging/blob/master/src/Microsoft.Extensions.Logging.Abstractions/LoggerExtensions.cs

TessenR avatar Sep 03 '21 10:09 TessenR