Bagikan melalui


WebHostBuilderExtensions.ConfigureLogging Metode

Definisi

Overload

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Menambahkan delegasi untuk mengonfigurasi yang disediakan LoggerFactory. Ini dapat dipanggil beberapa kali.

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Menambahkan delegasi untuk mengonfigurasi yang disediakan ILoggingBuilder. Ini dapat dipanggil beberapa kali.

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Sumber:
WebHostBuilderExtensions.cs
Sumber:
WebHostBuilderExtensions.cs
Sumber:
WebHostBuilderExtensions.cs

Menambahkan delegasi untuk mengonfigurasi yang disediakan LoggerFactory. Ini dapat dipanggil beberapa kali.

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

Parameter

hostBuilder
IWebHostBuilder

untuk IWebHostBuilder mengonfigurasi.

configureLogging
Action<WebHostBuilderContext,ILoggingBuilder>

Delegasi yang mengonfigurasi LoggerFactory.

Mengembalikan

IWebHostBuilder.

Berlaku untuk

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Sumber:
WebHostBuilderExtensions.cs
Sumber:
WebHostBuilderExtensions.cs
Sumber:
WebHostBuilderExtensions.cs

Menambahkan delegasi untuk mengonfigurasi yang disediakan ILoggingBuilder. Ini dapat dipanggil beberapa kali.

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

Parameter

hostBuilder
IWebHostBuilder

untuk IWebHostBuilder mengonfigurasi.

configureLogging
Action<ILoggingBuilder>

Delegasi yang mengonfigurasi ILoggingBuilder.

Mengembalikan

IWebHostBuilder.

Berlaku untuk