다음을 통해 공유


HostingHostBuilderExtensions.ConfigureLogging 메서드

정의

오버로드

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

제공된 ILoggingBuilder를 구성하는 대리자를 추가합니다. 여러 번 호출될 수 있습니다.

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

제공된 ILoggingBuilder를 구성하는 대리자를 추가합니다. 여러 번 호출될 수 있습니다.

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

제공된 ILoggingBuilder를 구성하는 대리자를 추가합니다. 여러 번 호출될 수 있습니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureLogging(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IHostBuilder, configureLogging As Action(Of HostBuilderContext, ILoggingBuilder)) As IHostBuilder

매개 변수

hostBuilder
IHostBuilder

구성할 IHostBuilder입니다.

configureLogging
Action<HostBuilderContext,ILoggingBuilder>

ILoggingBuilder를 구성하는 대리자입니다.

반환

연결을 위한 IHostBuilder의 동일한 인스턴스입니다.

적용 대상

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

제공된 ILoggingBuilder를 구성하는 대리자를 추가합니다. 여러 번 호출될 수 있습니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureLogging(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IHostBuilder, configureLogging As Action(Of ILoggingBuilder)) As IHostBuilder

매개 변수

hostBuilder
IHostBuilder

구성할 IHostBuilder입니다.

configureLogging
Action<ILoggingBuilder>

ILoggingBuilder를 구성하는 대리자입니다.

반환

연결을 위한 IHostBuilder의 동일한 인스턴스입니다.

적용 대상