共用方式為


SiloHostBuilderExtensions.ConfigureLogging 方法

定義

多載

ConfigureLogging(ISiloHostBuilder, Action<ILoggingBuilder>)

新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。

ConfigureLogging(ISiloHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。

ConfigureLogging(ISiloHostBuilder, Action<ILoggingBuilder>)

來源:
SiloHostBuilderExtensions.cs

新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。

public static Orleans.Hosting.ISiloHostBuilder ConfigureLogging (this Orleans.Hosting.ISiloHostBuilder builder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Orleans.Hosting.ISiloHostBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function ConfigureLogging (builder As ISiloHostBuilder, configureLogging As Action(Of ILoggingBuilder)) As ISiloHostBuilder

參數

builder
ISiloHostBuilder

要設定的 ISiloHostBuilder

configureLogging
Action<ILoggingBuilder>

設定 ILoggingBuilder 的委派。

傳回

用於鏈結的相同 ISiloHostBuilder 執行個體。

適用於

ConfigureLogging(ISiloHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

來源:
SiloHostBuilderExtensions.cs

新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。

public static Orleans.Hosting.ISiloHostBuilder ConfigureLogging (this Orleans.Hosting.ISiloHostBuilder builder, Action<Orleans.Hosting.HostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Orleans.Hosting.ISiloHostBuilder * Action<Orleans.Hosting.HostBuilderContext, Microsoft.Extensions.Logging.ILoggingBuilder> -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function ConfigureLogging (builder As ISiloHostBuilder, configureLogging As Action(Of HostBuilderContext, ILoggingBuilder)) As ISiloHostBuilder

參數

builder
ISiloHostBuilder

要設定的 ISiloHostBuilder

configureLogging
Action<HostBuilderContext,ILoggingBuilder>

設定 ILoggingBuilder 的委派。

傳回

用於鏈結的相同 ISiloHostBuilder 執行個體。

適用於