Help Center/ Object Storage Service/ BrowserJS SDK Developer Guide (Ally Region)/ Initialization/ Configuring SDK Logging
Updated on 2026-01-16 GMT+08:00
Configuring SDK Logging
You can call ObsClient.initLog to enable bucket logging. Sample code is as follows:
obsClient.initLog({
level:'warn', // Set the log level.
});
- Logs printed by the SDK will be displayed on the Console within the developer tools of a browser.
- The logging function is disabled by default. You need to enable it manually.
- For details about SDK logs, see Log Analysis.
Parent topic: Initialization
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot