FakeHostingExtensions.AddFakeLoggingOutputSink 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.
Adds an action invoked on each log message.
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
Parameters
- builder
- IHostBuilder
An IHostBuilder instance.
Returns
The IHostBuilder instance.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.