LoggerContract interface
记录器详细信息。
属性
| credentials | azureEventHub 记录器的事件中心的名称和 SendRule 连接字符串。 applicationInsights 记录器检测密钥。 |
| description | 记录器说明。 |
| is |
是否在发布前缓冲记录器中的记录。 默认值假定为 true。 |
| logger |
记录器类型。 |
| resource |
日志目标的 Azure 资源 ID(Azure 事件中心资源或 Azure Application Insights 资源)。 |
继承属性
| id | 资源的完全限定资源 ID。 Ex - /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 资源 ID(Azure 事件中心资源或 Azure Application Insights 资源)。
resourceId?: string
属性值
string
继承属性详细信息
id
资源的完全限定资源 ID。 Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} 注意:此属性不会序列化。 它只能由服务器填充。
id?: string
属性值
string
name
type
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”注意:此属性不会序列化。 它只能由服务器填充。
type?: string
属性值
string