AzureAppServicesLoggerFactoryExtensions.AddAzureWebAppDiagnostics 方法

定義

多載

AddAzureWebAppDiagnostics(ILoggerFactory)
已過時。

新增 Azure Web Apps 診斷記錄器。

AddAzureWebAppDiagnostics(ILoggingBuilder)

新增 Azure Web Apps 診斷記錄器。

AddAzureWebAppDiagnostics(ILoggerFactory, AzureAppServicesDiagnosticsSettings)
已過時。

新增 Azure Web Apps 診斷記錄器。

AddAzureWebAppDiagnostics(ILoggerFactory)

警告

This method is obsolete and will be removed in a future version. The recommended alternative is AddAzureWebAppDiagnostics(this ILoggingBuilder builder).

新增 Azure Web Apps 診斷記錄器。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddAzureWebAppDiagnostics(Microsoft::Extensions::Logging::ILoggerFactory ^ factory);
public static Microsoft.Extensions.Logging.ILoggerFactory AddAzureWebAppDiagnostics (this Microsoft.Extensions.Logging.ILoggerFactory factory);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddAzureWebAppDiagnostics(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddAzureWebAppDiagnostics (this Microsoft.Extensions.Logging.ILoggerFactory factory);
static member AddAzureWebAppDiagnostics : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddAzureWebAppDiagnostics(this ILoggingBuilder builder).")>]
static member AddAzureWebAppDiagnostics : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddAzureWebAppDiagnostics (factory As ILoggerFactory) As ILoggerFactory

參數

factory
ILoggerFactory

擴充方法引數。

傳回

ILoggerFactory
屬性

適用於

AddAzureWebAppDiagnostics(ILoggingBuilder)

新增 Azure Web Apps 診斷記錄器。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddAzureWebAppDiagnostics(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddAzureWebAppDiagnostics (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddAzureWebAppDiagnostics : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddAzureWebAppDiagnostics (builder As ILoggingBuilder) As ILoggingBuilder

參數

builder
ILoggingBuilder

擴充方法引數。

傳回

ILoggingBuilder

適用於

AddAzureWebAppDiagnostics(ILoggerFactory, AzureAppServicesDiagnosticsSettings)

警告

This method is obsolete and will be removed in a future version. The recommended alternative is AddAzureWebAppDiagnostics(this ILoggingBuilder builder).

新增 Azure Web Apps 診斷記錄器。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddAzureWebAppDiagnostics(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::AzureAppServices::AzureAppServicesDiagnosticsSettings ^ settings);
public static Microsoft.Extensions.Logging.ILoggerFactory AddAzureWebAppDiagnostics (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.AzureAppServices.AzureAppServicesDiagnosticsSettings settings);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddAzureWebAppDiagnostics(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddAzureWebAppDiagnostics (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.AzureAppServices.AzureAppServicesDiagnosticsSettings settings);
static member AddAzureWebAppDiagnostics : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.AzureAppServices.AzureAppServicesDiagnosticsSettings -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddAzureWebAppDiagnostics(this ILoggingBuilder builder).")>]
static member AddAzureWebAppDiagnostics : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.AzureAppServices.AzureAppServicesDiagnosticsSettings -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddAzureWebAppDiagnostics (factory As ILoggerFactory, settings As AzureAppServicesDiagnosticsSettings) As ILoggerFactory

參數

factory
ILoggerFactory

擴充方法引數。

settings
AzureAppServicesDiagnosticsSettings

設定記錄器的設定物件。

傳回

ILoggerFactory
屬性

適用於