How to read salesforce debug log


  • To view the debug logs, from the setup option in Salesforce, enter ‘Debug Logs’ in the ‘Quick Find box’, then select ‘Debug Logs’.
  • Once you select the Debug Logs, click the ‘View’ button to examine the log.
  • Click ‘Download’ to download the logs as an XML file.

To view a debug log, from Setup, enter Debug Logs in the Quick Find box, then select Debug Logs. Then click View next to the debug log that you want to examine. Click Download to download the log as an XML file.

How to use debug logs in Salesforce to troubleshoot?

  • Processes created in the Process Builder appear as flows and workflow rules in debug logs. …
  • Record change processes appear as flows of type Workflow. …
  • Immediate actions that are executed in a block are strung together in the flow. …
  • Scheduled actions are executed after a FLOW_WAIT element. …

More items…

How to enable debug logs?

Log on to the computer as a member of the local administrators group. Launch Event Viewer. Select ViewShow Analytic and Debug Logs. Navigate to Event Viewer (Local)Applications and Service LogsMicrosoftUser Experience VirtualizationApp Agent. Right-click on Debug under App Agent and select Enable Log.

What are debug logs and how do I use them?

  • Each debug log must be 20 MB or smaller. …
  • System debug logs are retained for 24 hours. …
  • If you generate more than 1,000 MB of debug logs in a 15-minute window, your trace flags are disabled. …
  • When your org accumulates more than 1,000 MB of debug logs, we prevent users in the org from adding or editing trace flags. …

How do I collect debug logs?

To collect debug logs

  • Right-click on “Debug” node and select “Save all events as”.
  • Choose a location and a file name and Save.
  • Choose “Display information for these languages” and select “English (United States)”.
  • Click “Ok”.

What is Salesforce debug log?

Salesforce is a widely used CRM tool. It provides one integrated platform for sales, marketing, services and commerce. The Salesforce debug logs can help you to keep track of time, the status of transactions, etc. In this blog, you will learn about Salesforce debug logs, how to create it and how to use it to track issues.

How to set up debug log in Salesforce?

To set the Debug Log, click on ‘New’. Select the user, start date and expiration date (future date) to set up Debug Log.

How long are debug logs retained?

System debug logs are retained for 24 hours. Monitoring debug logs are retained for seven days. If you are generating more than 1000 MB of logs files in 15 minutes window, Trace flags will be disabled automatically. You will receive an email with the information so that you can analyze and re-enable it.

What is a log level?

Log Levels are useful to determine the type of information logged when the workflow kicks in. Different log levels will help you to understand the process, status of the job, any internal information about code execution, etc. Below are the log levels listed from the lowest to the highest level.

How to see logs in Apex?

You can view your log in two ways. Before execution, enable Open Log in the Enter Apex Code window. The log opens after your code has been executed. After execution, double-click the log that appears in the Logs tab. Let’s try the first method.

What does it mean when your log level is FINEST?

If your log level is FINEST (2), your code can hit log limits and take longer to run. Don’t worry if you don’t see all the levels when you update the log level for a category. Only the levels that add more logging for the category are listed.

What is the best way to find problems with a program?

Logs are one of the best places to identify problems with a system or program. Using the Developer Console, you can look at various debug logs to understand how your code works and to identify any performance issues.


Leave a Comment