Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to use debug log salesforce for a specific class only?

Asked by Elonjigar Mar 3, 2023 1.5K views 1 answer
Share

About this question

 I'm trying to capture the logs for a specific class for a user with a lot of transactions (hundreds in any given minute). For example, the user will have 100 transactions done in a minute that will show up if I turn on debug logs for it; however, I am only interested in seeing the logs for 2 of those transactions that are related to a specific class (e.g., Accounts.cls). I saw the following message on the debug page:


"Class and trigger trace flags override other logging levels, including logging levels set by user trace flags, but they don’t cause logging to occur. "

So how can I target my debug logs to only show the logs for that one specific class and exclude all the others? I found this question to be somewhat relevant but not exactly the same.

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.