Issue
I want to disable structured logging so that log events stop consuming my Pay-As-You-Go (PAYG) budget. I need to know which SDK option controls it and how to confirm my projects are no longer sending logs.
Applies To
All SaaS Customers
Logs / Quota
Resolution
Structured logging is opt-in: the SDKs only send logs when you configure them to. To stop sending logs, disable the logging option in your SDK. Set the option to false or remove it (the option name differs by SDK; older SDK versions used _experiments.enableLogs, so remove that if present):
JavaScript:
enableLogsPython:
enable_logsRuby:
config.enable_logs
Disabling this option is the master switch and stops all log events, including logs captured by logging integrations. If you also set beforeSendLog or call Sentry.logger.*, you can remove those as well.
The exact option name and the minimum SDK version that supports it vary by platform. Check your platform's logs setup page in the Sentry Logs documentation to confirm the option and the version you need.
To confirm which projects are still sending logs:
Go to Settings > Stats & Usage and open the Usage tab.
In the Category dropdown, select Logs and set the date range to the last 90 days.
If there are results, scroll to the project list to see which projects are sending logs, then disable the logging option above in those projects' SDK configuration.
For how logs are billed, see the related article What is the pricing for Sentry Logs?.
