+ Start a Discussion

Programmatically search apex debug logs



I'm not sure how to do the following:


I want to Programmatically seach the debug logs to see if it contains some String I wrote for debugging.

I have many log files so I do not want to open each one but search Programmatically.


Can this be done?


I really need some help


Many thanks






Not sure what exactly what you have to do with debug statements. But if you just want to debug your code; open the "Developer Console" and run your app/code in Salesforce.com. Then you can search for the specific string in your "Developer Console" Window.




But even with the developer console I cannot search all the files at once only one by one.

Since I have many files I cannot search one by one


Any ideas?