다음을 통해 공유


FakeHostingExtensions.AddFakeLoggingOutputSink 메서드

정의

각 로그 메시지에서 호출되는 작업을 추가합니다.

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

매개 변수

builder
IHostBuilder

IHostBuilder 인스턴스입니다.

callback
Action<String>

각 로그 메시지에서 호출할 작업입니다.

반환

IHostBuilder 인스턴스입니다.

적용 대상