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'
});
Last Article: Initializing an Instance of ObsClient
Next Article: Request Object
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.