Updated on 2022-02-10 GMT+08:00

Initializing Logs

API Description

You can enable the SDK log function to record log information generated during API calling into log files for subsequent data analysis or fault location.

Method Definition

ObsClient.initLog(parameter)

Parameter Description

Field

Type

Optional or Mandatory

Description

level

String

Mandatory

Log level. Possible values are debug, info, warn, and error.

Sample Code

obsClient.initLog({
       level:'info'
});