I'm using unlimited edition of Salesforce. I would like to enable debug logs for a user for a particular period of time. Currently Salesforce is only enablling a maximum period of 24 hours to enable debug logs. Once the 24 hours is over, I need to enable logs again. Is there any way to accomplish this (Enabling log for more than 24 hours)?
In an out of the box thinking, Is there a way to enable debug logs with Apex code? So that I can run a batch job every day so as to enable logs.