There is no solution otherthan adding the user to the Monitored user section.You can always reset the log request count. Just to clarify ,suppose if it happens every time code executes the logs will take moresize than your actual database size thats why salesforce set a limit to the logs so that whenever we need to investigate we can check logs and avoid saving to many on logs in database.
Go to Setup -> Monitor -> Logs -> Debug Logs
Add your User name under "Monitored Users".
The log should appear under the Debug Logs section once you have executed the code.
If the above resolved your issue kindly mark it as the Solution.
Regards,
Lakshmi.
All Answers
The log for code executed in the Execute Anonymous window is displayed in the Developer console itself.
For example:
Log displayed:
If the log doesn't open after execution check under the Logs tab at the bottom as shown above.
Regards,
Lakshmi.
Go to Setup -> Monitor -> Logs -> Debug Logs
Add your User name under "Monitored Users".
The log should appear under the Debug Logs section once you have executed the code.
If the above resolved your issue kindly mark it as the Solution.
Regards,
Lakshmi.
But in that case only 20 log requests are allowed . isn't there any permanent solution to get logs displayed when the code is executed
Thanks and Regards,
Suresh.
There is no solution otherthan adding the user to the Monitored user section.You can always reset the log request count.
Just to clarify ,suppose if it happens every time code executes the logs will take moresize than your actual database size thats why salesforce set a limit to the logs so that whenever we need to investigate we can check logs and avoid saving to many on logs in database.
Regards,
BDatla