通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Logger interface

表示记录器的接口。

方法

createOrUpdate(string, string, string, LoggerContract, LoggerCreateOrUpdateOptionalParams)

创建或更新记录器。

delete(string, string, string, string, LoggerDeleteOptionalParams)

删除指定的记录器。

get(string, string, string, LoggerGetOptionalParams)

获取由其标识符指定的记录器的详细信息。

getEntityTag(string, string, string, LoggerGetEntityTagOptionalParams)

获取由其标识符指定的记录器实体状态 (Etag) 版本。

listByService(string, string, LoggerListByServiceOptionalParams)

列出指定服务实例中的记录器集合。

update(string, string, string, string, LoggerUpdateContract, LoggerUpdateOptionalParams)

更新现有记录器。

方法详细信息

createOrUpdate(string, string, string, LoggerContract, LoggerCreateOrUpdateOptionalParams)

创建或更新记录器。

function createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: LoggerContract, options?: LoggerCreateOrUpdateOptionalParams): Promise<LoggerCreateOrUpdateResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

API 管理服务的名称。

loggerId

string

记录器标识符。 API 管理服务实例中必须是唯一的。

parameters
LoggerContract

创建参数。

options
LoggerCreateOrUpdateOptionalParams

选项参数。

返回

delete(string, string, string, string, LoggerDeleteOptionalParams)

删除指定的记录器。

function delete(resourceGroupName: string, serviceName: string, loggerId: string, ifMatch: string, options?: LoggerDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

API 管理服务的名称。

loggerId

string

记录器标识符。 API 管理服务实例中必须是唯一的。

ifMatch

string

实体的 ETag。 ETag 应与 GET 请求的标头响应中的当前实体状态匹配,或者它应为 * 进行无条件更新。

options
LoggerDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, LoggerGetOptionalParams)

获取由其标识符指定的记录器的详细信息。

function get(resourceGroupName: string, serviceName: string, loggerId: string, options?: LoggerGetOptionalParams): Promise<LoggerGetResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

API 管理服务的名称。

loggerId

string

记录器标识符。 API 管理服务实例中必须是唯一的。

options
LoggerGetOptionalParams

选项参数。

返回

getEntityTag(string, string, string, LoggerGetEntityTagOptionalParams)

获取由其标识符指定的记录器实体状态 (Etag) 版本。

function getEntityTag(resourceGroupName: string, serviceName: string, loggerId: string, options?: LoggerGetEntityTagOptionalParams): Promise<LoggerGetEntityTagHeaders>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

API 管理服务的名称。

loggerId

string

记录器标识符。 API 管理服务实例中必须是唯一的。

options
LoggerGetEntityTagOptionalParams

选项参数。

返回

listByService(string, string, LoggerListByServiceOptionalParams)

列出指定服务实例中的记录器集合。

function listByService(resourceGroupName: string, serviceName: string, options?: LoggerListByServiceOptionalParams): PagedAsyncIterableIterator<LoggerContract, LoggerContract[], PageSettings>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

API 管理服务的名称。

options
LoggerListByServiceOptionalParams

选项参数。

返回

update(string, string, string, string, LoggerUpdateContract, LoggerUpdateOptionalParams)

更新现有记录器。

function update(resourceGroupName: string, serviceName: string, loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, options?: LoggerUpdateOptionalParams): Promise<LoggerUpdateResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceName

string

API 管理服务的名称。

loggerId

string

记录器标识符。 API 管理服务实例中必须是唯一的。

ifMatch

string

实体的 ETag。 ETag 应与 GET 请求的标头响应中的当前实体状态匹配,或者它应为 * 进行无条件更新。

parameters
LoggerUpdateContract

更新参数。

options
LoggerUpdateOptionalParams

选项参数。

返回