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' });
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot