System Log
In Salesforce development (Classic), the Developer Console's log viewer or debug log feature that records detailed execution information for Apex code, workflow rules, validation rules, and system events for troubleshooting.
Definition
In Salesforce development (Classic), the Developer Console's log viewer or debug log feature that records detailed execution information for Apex code, workflow rules, validation rules, and system events for troubleshooting.
In plain English
“The System Log in Salesforce development (Classic) is the Developer Console's debug log feature. It records detailed execution information for Apex code, workflow rules, validation rules, and other automation, helping developers troubleshoot issues.”
Worked example
An Apex developer at Hartmoor Software opens the Developer Console's System Log to debug a flow that fails intermittently. She reproduces the issue, opens the latest System Log, and sees the chronological execution: each Apex method invoked, each SOQL query run, each DML statement issued, each governor-limit accumulation, with the exception that fired and the stack trace. She traces the bug to a sharing-recalculation that ran inline with the trigger and pushed the transaction over the CPU-time governor limit. Fix: move the recalculation to async. The System Log is the most granular diagnostic tool the platform offers in Classic; modern Lightning uses Debug Logs with similar structure.
Why System Log matters
In Salesforce development (Classic), the System Log is the Developer Console's log viewer or debug log feature that records detailed execution information for Apex code, workflow rules, validation rules, and other automation, used for troubleshooting and performance analysis. Debug logs capture transaction details at configurable verbosity levels.
Debug logging is foundational to Salesforce development and troubleshooting. Without debug logs, diagnosing code failures or performance issues is nearly impossible. Mature developers use debug logs routinely during development and maintain the ability to quickly enable them in production when issues arise. The Developer Console and VS Code both provide access to debug logs.
How organizations use System Log
Trains developers on using debug logs as a fundamental troubleshooting tool.
Uses debug logs in production troubleshooting with controlled enabling and monitoring.
Integrates debug log analysis into their development workflow.
Trust & references
Straight from the source - Salesforce's reference material on System Log.
- Developer ConsoleSalesforce Help
- System LogSalesforce Help
Test your knowledge
Q1. What is the System Log?
Q2. What does it record?
Q3. Why is it essential?
Discussion
Loading discussion…