August 28, 2023

Testing with ILogger and container in .NET core

In order to use NullLogger with container, next configuration should be added:

services.AddLogging(l => l.AddProvider(NullLoggerProvider.Instance));


No comments:

Post a Comment