Condividi tramite


FakeHostingExtensions.AddFakeLoggingOutputSink Metodo

Definizione

Aggiunge un'azione richiamata in ogni messaggio di log.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ AddFakeLoggingOutputSink(Microsoft::Extensions::Hosting::IHostBuilder ^ builder, Action<System::String ^> ^ callback);
public static Microsoft.Extensions.Hosting.IHostBuilder AddFakeLoggingOutputSink (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<string> callback);
static member AddFakeLoggingOutputSink : Microsoft.Extensions.Hosting.IHostBuilder * Action<string> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function AddFakeLoggingOutputSink (builder As IHostBuilder, callback As Action(Of String)) As IHostBuilder

Parametri

builder
IHostBuilder

Istanza di IHostBuilder.

callback
Action<String>

Azione da richiamare in ogni messaggio di log.

Restituisce

Istanza di IHostBuilder.

Si applica a