FakeLoggerServiceProviderExtensions.GetFakeLogCollector Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the object that collects log records sent to the fake logger.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::Testing::FakeLogCollector ^ GetFakeLogCollector(IServiceProvider ^ services);
public static Microsoft.Extensions.Logging.Testing.FakeLogCollector GetFakeLogCollector (this IServiceProvider services);
static member GetFakeLogCollector : IServiceProvider -> Microsoft.Extensions.Logging.Testing.FakeLogCollector
<Extension()>
Public Function GetFakeLogCollector (services As IServiceProvider) As FakeLogCollector
Parameters
- services
- IServiceProvider
The service provider containing the logger.
Returns
The collector that tracks records logged to fake loggers.
Exceptions
No collector exists in the provider.
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.