Lenguaje

FakeHostingExtensions.GetFakeLogCollector(IHost) Método

Definición

Obtiene el objeto que recopila los registros de registro enviados al registrador falso.

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

Parámetros

host
IHost

Instancia IHost de .

Devoluciones

El recopilador que realiza un seguimiento de los registros registrados en registradores falsos.

Excepciones

No existe ningún recopilador en el proveedor.

Se aplica a