FakeHostingExtensions.GetFakeLogCollector(IHost) 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(Microsoft::Extensions::Hosting::IHost ^ host);
public static Microsoft.Extensions.Logging.Testing.FakeLogCollector GetFakeLogCollector (this Microsoft.Extensions.Hosting.IHost host);
static member GetFakeLogCollector : Microsoft.Extensions.Hosting.IHost -> Microsoft.Extensions.Logging.Testing.FakeLogCollector
<Extension()>
Public Function GetFakeLogCollector (host As IHost) As FakeLogCollector
Parameters
Returns
The collector that tracks records logged to fake loggers.
Exceptions
No collector exists in the provider.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.