共用方式為


LoggerContract interface

記錄器詳細數據。

Extends

屬性

credentials

azureEventHub 記錄器事件中樞的名稱和 SendRule 連接字串。 applicationInsights 記錄器檢測密鑰。

description

記錄器描述。

isBuffered

在發佈之前,記錄是否會在記錄器中緩衝處理。 默認值假設為 true。

loggerType

記錄器類型。

resourceId

記錄目標的 Azure 資源識別碼(Azure 事件中樞資源或 Azure Application Insights 資源)。

繼承的屬性

id

資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} 注意:此屬性將不會串行化。 它只能由伺服器填入。

name

資源名稱注意:此屬性將不會串行化。 它只能由伺服器填入。

type

資源的型別。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” 附注:此屬性將不會串行化。 它只能由伺服器填入。

屬性詳細資料

credentials

azureEventHub 記錄器事件中樞的名稱和 SendRule 連接字串。 applicationInsights 記錄器檢測密鑰。

credentials?: {[propertyName: string]: string}

屬性值

{[propertyName: string]: string}

description

記錄器描述。

description?: string

屬性值

string

isBuffered

在發佈之前,記錄是否會在記錄器中緩衝處理。 默認值假設為 true。

isBuffered?: boolean

屬性值

boolean

loggerType

記錄器類型。

loggerType?: string

屬性值

string

resourceId

記錄目標的 Azure 資源識別碼(Azure 事件中樞資源或 Azure Application Insights 資源)。

resourceId?: string

屬性值

string

繼承的屬性詳細資料

id

資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} 注意:此屬性將不會串行化。 它只能由伺服器填入。

id?: string

屬性值

string

繼承自ProxyResource.id

name

資源名稱注意:此屬性將不會串行化。 它只能由伺服器填入。

name?: string

屬性值

string

繼承自ProxyResource.name

type

資源的型別。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” 附注:此屬性將不會串行化。 它只能由伺服器填入。

type?: string

屬性值

string

繼承自ProxyResource.type