{"id":149,"date":"2013-07-08T17:18:26","date_gmt":"2013-07-08T11:48:26","guid":{"rendered":"https:\/\/www.dhruvsoft.com\/blog\/?p=149"},"modified":"2025-06-09T14:57:55","modified_gmt":"2025-06-09T09:27:55","slug":"how-to-use-debug-logs-in-salesforce-to-troubleshoot","status":"publish","type":"post","link":"https:\/\/www.dhruvsoft.com\/blog\/how-to-use-debug-logs-in-salesforce-to-troubleshoot\/","title":{"rendered":"How to Use Debug Logs in Salesforce to Troubleshoot"},"content":{"rendered":"<p>This article will show you how you can use &#8220;Debug Logs&#8221; in Salesforce.com to Troubleshoot?<\/p>\n<h4>What is\u00c2\u00a0Debug Log in Salesforce.com?<\/h4>\n<p>A debug log records data base operations, system process, and errors that occur when executing a transaction or while running unit tests. We can monitor specific users in Debug log by adding them to list of Monitored Users.<!--more--><\/p>\n<h4>Add users to the debug log<\/h4>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image002.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-150 size-full\" title=\"Debug Log in Salesforce\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image002.jpg\" alt=\"Debug Log in Salesforce\" width=\"217\" height=\"433\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image002.jpg 217w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image002-150x300.jpg 150w\" sizes=\"auto, (max-width: 217px) 100vw, 217px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image004.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-151 size-full\" title=\"Salesforce debug logs\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image004.gif\" alt=\"Salesforce debug logs\" width=\"623\" height=\"294\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image006.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-152 size-full\" title=\"Selecting User for Debug Log\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image006.gif\" alt=\"Selecting User for Debug Log\" width=\"623\" height=\"275\" \/><\/a><\/p>\n<h4>What information is monitored by Salesforce.com Debug Logs?<\/h4>\n<p>Debug log can contain information about<\/p>\n<ul>\n<li>Database changes<\/li>\n<li>HTTP callouts<\/li>\n<li>Apex errors<\/li>\n<li>Resources used by Apex<\/li>\n<li>Automated workflow process, such as :\n<ul>\n<li>Workflow rules<\/li>\n<li>Assignment rules<\/li>\n<li>Approval processes<\/li>\n<li>Validation rules<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>What are Debug log Filters in Salesforce.com?<\/h4>\n<p>When using a Developer Console or monitoring a debug log, you can specify the level of information that gets included in the log.<\/p>\n<ul>\n<li>Log Category<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\">The type of information logged, such as<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Database<\/li>\n<li>Workflow<\/li>\n<li>Validation<\/li>\n<li>Callout<\/li>\n<li>Apex code<\/li>\n<li>Visualforce<\/li>\n<li>system<\/li>\n<\/ul>\n<\/li>\n<li>Log Level<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\">The amount of information logged. Logging levels determine how much request information is saved in a debug log. You can specify the following log levels<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>ERROR<\/li>\n<li>WARN<\/li>\n<li>INFO<\/li>\n<li>DEBUG<\/li>\n<li>FINE<\/li>\n<li>FINER<\/li>\n<li>FINEST<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Sample debug log in Salesforce.com<\/p>\n<p>Here us a sample of Debug log in SFDC<\/p>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image008.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-153 size-full\" title=\"Debug Log in SFDC\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image008.gif\" alt=\"Debug Log in SFDC\" width=\"623\" height=\"346\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image010.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-154 size-full\" title=\"Sample Debug Log\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/07\/image010.gif\" alt=\"Sample Debug Log\" width=\"625\" height=\"368\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will show you how you can use &#8220;Debug Logs&#8221; in Salesforce.com to Troubleshoot? What is\u00c2\u00a0Debug Log in Salesforce.com? A debug log records data base operations, system process, and errors that occur when executing a transaction or while running unit tests. We can monitor specific users in Debug log by adding them to list [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[88,87,77],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-apex","tag-salesforce-development","tag-salesforce-programming","tag-salesforce-com-debug-logs","entry"],"_links":{"self":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":0,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/149\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}