Compartilhar via


FakeHostingExtensions.AddFakeLoggingOutputSink Método

Definição

Adiciona uma ação invocada em cada mensagem de 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

Parâmetros

builder
IHostBuilder

Uma instância IHostBuilder.

callback
Action<String>

A ação a ser invocada em cada mensagem de log.

Retornos

A instância IHostBuilder.

Aplica-se a