All Ideas

Idea Details

Post an Idea
220  Points
Under Point Threshold
Idea hasn't met the 2,500-point review threshold. Give it an upvote or downvote.

Allow TraceFlags to indicate that Debug logs can be deleted automatically

Apex

With Summer'18 orgs are limited to 250 MB of stored debug logs - Store Larger Debug Logs with Changed Log Limits.
 
When your org accumulates more than 250 MB of debug logs, we prevent users in the org from adding or editing trace flags. To add or edit trace flags so that you can generate more logs after you reach the limit, delete some debug logs.

As it isn't generally good practice to delete logs that others are creating this puts the onus on the developers within the org to coordinate on the deletion of excess logs.

In the majority of scenarios, the debug logs are only required for a short period of time after they are generated.

Rather than retaining all the non-system debug logs for the full 7 days add an option to the TraceFlag that indicates the generated debug logs can be freely deleted as required. Then, if the org every reaches the 250 MB debug log limit the oldest debug logs that aren't flagged for retention can be automatically deleted and the new logs created.

Mockup of Trace Flag option to purge older debug logs once 250MB limit is reached.

Merge Idea · Flag

  • Upvotes
  • Downvotes

Ideas

Apps

from AppExchange

Questions

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



 

 

Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


 

Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.