On this page

Show all

Configuring SDK Logging

Updated on 2023-03-16 GMT+08:00
NOTICE:

If you have any questions during development, post them on the Issues page of GitHub. For details about parameters and usage of each API, see the API Reference.

You can call ObsClient.initLog to enable bucket logging. Sample code is as follows:

obsClient.initLog({
       level:'warn', // Set the log level.
});
NOTE:
  • Logs printed by the SDK will be displayed in the Console of the developer tool provided by the browser.
  • The logging function is disabled by default. You need to enable it manually.
  • For details about SDK logs, see Log Analysis.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback