Debug Logs

The Debug Log viewer pulls debug logs from your org and displays them in a structured, filterable interface. No more downloading files and searching manually.

Features

Log List

View all available debug logs for your org:

  • Filter by user
  • Filter by log level (DEBUG, INFO, WARN, ERROR)
  • Filter by operation type (Apex trigger, workflow, flow, etc.)
  • Sort by timestamp or size
  • Quick preview of the log summary

Log Viewer

Click any log to open the full content in a structured viewer:

  • Color-coded by log level
  • Collapsible sections (SOQL statements, DML operations, heap usage)
  • Line-by-line search
  • Filter to show only errors or only SOQL
  • Execution time breakdown

SOQL Analysis

Automatically identifies all SOQL queries in the log:

  • Count of queries per operation
  • Row counts for each query
  • Flag potential governor limit issues (>100 queries)
  • Show the actual SOQL text

Error Highlighting

Errors and exceptions are highlighted automatically:

  • Apex exceptions with stack traces
  • Validation rule failures
  • Governor limit violations
  • DML errors

Download

Download any log as a .log or .txt file for sharing or archiving.

Setting Up Debug Logs

To capture a debug log:

  • Go to Setup > Debug Logs in Salesforce
  • Add a traced entity (user or automated process)
  • Set your log level
  • Reproduce the issue
  • Open SFDC Police → Debug Logs to view the result
  • Or use the built-in Quick Trace feature to start a log trace in one click.