Thread safety of ILogger<T> #50695
-
According to this documentation the ILogger<T> interface is automatically registered as a singleton with the DI container when using the ASP.NET core project templates. Givent that, can I safely assume that any available (and properly implemented) implementation of ILogger<T> is actually thread safe ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yes it's thread safe. |
Beta Was this translation helpful? Give feedback.
-
Tagging subscribers to this area: @eerhardt, @maryamariyan Issue DetailsAccording to this documentation the ILogger<T> interface is automatically registered as a singleton with the DI container when using the ASP.NET core project templates. Givent that, can I safely assume that any available (and properly implemented) implementation of ILogger<T> is actually thread safe ?
|
Beta Was this translation helpful? Give feedback.
Yes it's thread safe.