{"id":2055,"date":"2023-05-03T11:30:34","date_gmt":"2023-05-03T11:30:34","guid":{"rendered":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/?post_type=wpcode_doc&#038;p=2055"},"modified":"2026-10-05T09:53:34","modified_gmt":"2026-10-05T13:53:34","slug":"using-snippet-error-logging","status":"publish","type":"wpcode_doc","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/","title":{"rendered":"Using Snippet Error Logging"},"content":{"rendered":"<p>Would you like to see exactly what your code snippets are reporting, without opening a single file on your server?<\/p>\n<p>In this guide, we&#8217;ll walk you through turning on WPCode&#8217;s snippet error logging and reading the results from your WordPress admin.<\/p>\n<ul class=\"toc\">\n<li><a href=\"#turning-on-error-logging\">Turning On Error Logging<\/a><\/li>\n<li><a href=\"#sending-notifications-to-your-inbox\">Sending Notifications to Your Inbox<\/a><\/li>\n<li><a href=\"#viewing-your-error-logs\">Viewing Your Error Logs<\/a>\n<ul>\n<li><a href=\"#reading-a-log-entry\">Reading a Log Entry<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#removing-a-log\">Removing a Log<\/a><\/li>\n<li><a href=\"#frequently-asked-questions\">Frequently Asked Questions<\/a><\/li>\n<\/ul>\n<p>Before you get started, make sure WPCode is <a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/how-to-install-the-wpcode-plugin\/\" target=\"_blank\">installed and activated<\/a> on your WordPress site.<\/p>\n<h2 id=\"turning-on-error-logging\">Turning On Error Logging<\/h2>\n<p>To get started, we&#8217;ll turn logging on so WPCode has somewhere to keep the record.<\/p>\n<p>Error logging keeps a written record of everything your snippets report. It puts that record in your WordPress admin, instead of a file you need <a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/www.wpbeginner.com\/glossary\/ftp\/\" target=\"_blank\" rel=\"nofollow\">FTP<\/a> to reach. The switch starts off, so nothing is recorded until you turn it on.<\/p>\n<p>From your WordPress admin sidebar, go to <strong>Code Snippets &raquo; Settings<\/strong>. Then select the <strong>Error Handling<\/strong> tab.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_01_nav_settings.webp?v=868b7d6f\" alt=\"The WPCode Settings screen with the Code Snippets menu shown in the sidebar and an arrow pointing at the Error Handling tab\" \/><\/p>\n<p>The Error Handling tab holds every setting to do with snippet errors. The logging switch comes first. The email options follow underneath it.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_02_error_handling_tab.webp?v=ccfc1b19\" alt=\"The Error Handling tab showing the Error Logging toggle switched on above the Email Notifications heading\" \/><\/p>\n<p>At the top of the tab, switch <strong>Error Logging<\/strong> on.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_03_error_logging_toggle.webp?v=7ae667ae\" alt=\"An arrow pointing at the Error Logging toggle, shown switched on, with its View Logs link beside the description\" \/><\/p>\n<p>With this on, WPCode writes each entry to a log file in your uploads folder. The Logs tab reads those files back for you.<\/p>\n<p>The description beside the switch carries a <strong>View Logs<\/strong> link that jumps straight to that tab. That saves a trip through the menu once entries start arriving.<\/p>\n<div class=\"alert alert-info\">\n<p><strong>Note:<\/strong> Logging starts when you save, so the logs cover what your snippets report from that point on.<\/p>\n<\/div>\n<p>At the bottom of the panel, click <strong>Save Changes<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_04_save_changes.webp?v=1425aa6a\" alt=\"An arrow pointing at the Save Changes button at the bottom of the Error Handling tab\" \/><\/p>\n<p>Your error logging settings are now saved.<\/p>\n<h2 id=\"sending-notifications-to-your-inbox\">Sending Notifications to Your Inbox<\/h2>\n<div class=\"alert alert-warning\">\n<p><strong>Requirements<\/strong>: Email notifications are available in the paid versions of WPCode.<\/p>\n<\/div>\n<p>The logs wait for you to come and read them. WPCode can also come to you by emailing you the moment it writes an entry. The rest of the Error Handling tab covers that.<\/p>\n<p>Under the <strong>Email Notifications<\/strong> heading, switch <strong>Error Notifications<\/strong> on.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_05_error_notifications_toggle.webp?v=d8f6259e\" alt=\"An arrow pointing at the Error Notifications toggle, shown switched on, under the Email Notifications heading\" \/><\/p>\n<p>Each email names the snippet involved and links to its edit screen, so you can go from the message to the code in one click.<\/p>\n<p>In the <strong>Send To<\/strong> field, enter the addresses that will receive those emails.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_06_error_send_to.webp?v=ec322dec\" alt=\"An arrow pointing at the Send To field for error notifications, holding one email address\" \/><\/p>\n<p>Your site&#8217;s admin email address is there to begin with. The field takes a comma-separated list, so both a developer and the site owner can get the same email. The emails go to whatever addresses the field holds when you save.<\/p>\n<p>To see how one of these messages is laid out before you ever receive one, click <strong>Preview Email<\/strong>. It opens a sample in a new browser tab.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_07_preview_email.webp?v=2c510c86\" alt=\"An arrow pointing at the Preview Email button below the Send To field\" \/><\/p>\n<p><strong>Deactivation Notifications<\/strong> covers the second message WPCode can send. To be told whenever WPCode <a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/php-error-handling-safe-mode\/\" target=\"_blank\">takes a snippet out of service on its own<\/a>, switch it on.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_08_deactivation_notifications.webp?v=d21137de\" alt=\"An arrow pointing at the Deactivation Notifications toggle, shown switched on, with its own Send To field below\" \/><\/p>\n<p>It has its own <strong>Send To<\/strong> field and its own <strong>Preview Email<\/strong> button, so the two message types can go to different people. When you&#8217;ve set both the way you want them, click <strong>Save Changes<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_09_save_notifications.webp?v=25faf7f9\" alt=\"The last Send To field and Preview Email button, with an arrow pointing at the Save Changes button below them\" \/><\/p>\n<p>Your notification settings are now saved, and you&#8217;re ready to read what WPCode has recorded.<\/p>\n<h2 id=\"viewing-your-error-logs\">Viewing Your Error Logs<\/h2>\n<p>Everything WPCode records is readable from the admin, so you never need to download a file to see it.<\/p>\n<p>From your WordPress admin sidebar, go to <strong>Code Snippets &raquo; Tools<\/strong>. Then select the <strong>Logs<\/strong> tab.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_10_nav_tools.webp?v=a06ccb5c\" alt=\"The WPCode Tools screen with the Code Snippets menu shown in the sidebar and an arrow pointing at the Logs tab\" \/><\/p>\n<p>The tab opens on the first log it finds and shows its contents straight away.<\/p>\n<div class=\"alert alert-info\">\n<p><strong>Note:<\/strong> If you have only just switched logging on, the tab tells you no logs were found until your snippets report something.<\/p>\n<\/div>\n<p>The filename appears as the heading. Beside it, the Delete log button removes the file you&#8217;re looking at. We cover that in the <a href=\"#removing-a-log\">Removing a Log<\/a> section below.<\/p>\n<p>The picker on the right lists every log WPCode holds. The panel underneath holds the entries themselves.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_11_logs_tab.webp?v=f00d62f8\" alt=\"The Logs tab showing a log filename as the heading, a Delete log button, the log picker with a View button, and one entry in the panel below\" \/><\/p>\n<p>WPCode starts a fresh log file for each day. The date is part of the filename, so the list doubles as a timeline.<\/p>\n<p>Two kinds of file can appear in that list.<\/p>\n<ul>\n<li>A name beginning with <strong>error<\/strong> holds everything reported that day.<\/li>\n<li>A name beginning with <strong>snippet<\/strong> holds the entries for one snippet, and carries that snippet&#8217;s ID in the filename. This kind is useful when you want to follow a single snippet rather than the whole site.<\/li>\n<\/ul>\n<p>To read a different day or a different snippet, choose its file from the picker. Then click <strong>View<\/strong>.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_12_log_picker.webp?v=cdaa0911\" alt=\"An arrow pointing at the log picker dropdown, with the View button beside it\" \/><\/p>\n<p>The panel then holds the entries from the file you picked.<\/p>\n<h3 id=\"reading-a-log-entry\">Reading a Log Entry<\/h3>\n<p>Every line follows the same shape: a full timestamp, then the message WPCode received. The timestamp tells you when the entry was written, down to the second. The message is the part that tells you what your code was doing.<\/p>\n<p>Some messages name something specific, such as a function. That name is a shortcut back to the code, because the snippets list searches the code inside your snippets as well as their titles.<\/p>\n<p>Searching <strong>Code Snippets<\/strong> for that name will turn up the snippet holding it.<\/p>\n<p>For more on tracing a message back to the snippet that produced it, see our guide on <a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/how-to-debug-php-errors-in-wpcode\/\" target=\"_blank\">debugging PHP errors in WPCode<\/a>.<\/p>\n<h2 id=\"removing-a-log\">Removing a Log<\/h2>\n<p>Once you&#8217;ve finished with a log, clearing it out keeps the picker down to the days you care about.<\/p>\n<p>With the log you want on screen, click <strong>Delete log<\/strong> beside its filename.<\/p>\n<p><img decoding=\"async\" style=\"display:block;margin:1.5rem auto\" class=\"aligncenter\" src=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2026\/10\/wpcode-error-logging-step_13_delete_log.webp?v=aa13f23b\" alt=\"An arrow pointing at the Delete log button beside the log filename heading\" \/><\/p>\n<p>Your browser asks you to confirm before anything is deleted. Once confirmed, WPCode removes that one file. The rest of your logs stay exactly as they were.<\/p>\n<p>That&#8217;s it! You now have a written record of what your snippets report, a way to have it delivered to your inbox, and somewhere in the admin to read it. Next, our guide on <a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/php-error-handling-safe-mode\/\" target=\"_blank\">PHP error handling and safe mode<\/a> shows how WPCode keeps your admin reachable while you work through a log.<\/p>\n<h2 id=\"frequently-asked-questions\">Frequently Asked Questions<\/h2>\n<p>Below, we&#8217;ve answered some of the most common questions about WPCode&#8217;s snippet error logging.<\/p>\n<h3 id=\"where-does-wpcode-keep-the-log-files\">Where does WPCode keep the log files?<\/h3>\n<p>In a folder named <code>wpcode-logs<\/code> inside your WordPress uploads directory. WPCode creates that folder the first time it needs it. At the same time it adds an <code>index.html<\/code> and a <a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/www.wpbeginner.com\/glossary\/htaccess\/\" target=\"_blank\" rel=\"nofollow\"><code>.htaccess<\/code><\/a> file, so the contents aren&#8217;t served to visitors.<\/p>\n<h3 id=\"why-are-there-two-log-files-for-the-same-day\">Why are there two log files for the same day?<\/h3>\n<p>Because WPCode keeps a combined log alongside the per-snippet ones. The file whose name starts with <code>error<\/code> collects everything reported that day. A file whose name starts with <code>snippet<\/code> covers a single snippet, and carries that snippet&#8217;s ID in its name.<\/p>\n<h3 id=\"does-a-log-file-keep-growing\">Does a log file keep growing?<\/h3>\n<p>No. Once a day&#8217;s file passes WPCode&#8217;s size limit, WPCode starts a new one. It keeps the earlier files beside it with a numbered suffix, up to ten of them.<\/p>\n<h3 id=\"who-can-open-the-logs-tab\">Who can open the Logs tab?<\/h3>\n<p>The Logs tab checks the same permission WPCode uses for editing PHP snippets, so a user needs that permission to read a log. The <a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/access-control\/\" target=\"_blank\">Access Control<\/a> tab shows which roles hold it, and lets you change them.<\/p>\n<h3 id=\"are-the-notification-emails-sent-on-a-schedule\">Are the notification emails sent on a schedule?<\/h3>\n<p>No. WPCode sends each one as it records the entry, so the email arrives at the same time as the log line.<\/p>\n<h3 id=\"what-is-in-a-notification-email\">What is in a notification email?<\/h3>\n<p>The subject line names your site and the ID of the snippet involved. The body gives you the snippet&#8217;s title as a link to its edit screen, the address the entry was recorded on when WPCode has one, and the full message.<\/p>\n<h3 id=\"do-i-get-both-emails-when-a-snippet-is-deactivated\">Do I get both emails when a snippet is deactivated?<\/h3>\n<p>No. When WPCode has taken a snippet out of service, it sends the deactivation message for that event rather than the error message. Each type carries its own subject line, so the two are easy to tell apart in your inbox.<\/p>\n<h3 id=\"what-does-the-logs-tab-show-before-anything-is-recorded\">What does the Logs tab show before anything is recorded?<\/h3>\n<p>A short line telling you no logs were found, with a link back to the Error Handling tab so you can check the switch. Once a file exists but happens to be empty, the tab names the file and tells you the log is empty.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Would you like to see exactly what your code snippets are reporting, without opening a single file on your server? In this guide, we&#8217;ll walk you through turning on WPCode&#8217;s snippet error logging and reading the results from your WordPress admin. Turning On Error Logging Sending Notifications to Your Inbox Viewing Your Error Logs Reading [&hellip;]<\/p>\n","protected":false},"author":2,"template":"","class_list":["post-2055","wpcode_doc","type-wpcode_doc","status-publish","hentry","wpcode_doc_category-troubleshooting"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 5.0.5 - aioseo.com -->\n\t<meta name=\"description\" content=\"Would you like to see exactly what your code snippets are reporting, without opening a single file on your server? In this guide, we&#039;ll walk you through turning on WPCode&#039;s snippet error logging and reading the results from your WordPress admin. Turning On Error Logging Sending Notifications to Your Inbox Viewing Your Error Logs Reading\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Mircea Sandu\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 5.0.5\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"WPCode - The Best WordPress Code Snippets Plugin\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Using Snippet Error Logging - WPCode\" \/>\n\t\t<meta property=\"og:description\" content=\"Would you like to see exactly what your code snippets are reporting, without opening a single file on your server? In this guide, we&#039;ll walk you through turning on WPCode&#039;s snippet error logging and reading the results from your WordPress admin. Turning On Error Logging Sending Notifications to Your Inbox Viewing Your Error Logs Reading\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2023\/08\/wpcode-featured-image-2.jpg?wsr\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2023\/08\/wpcode-featured-image-2.jpg?wsr\" \/>\n\t\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-05-03T11:30:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-05T13:53:34+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Using Snippet Error Logging - WPCode\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Would you like to see exactly what your code snippets are reporting, without opening a single file on your server? In this guide, we&#039;ll walk you through turning on WPCode&#039;s snippet error logging and reading the results from your WordPress admin. Turning On Error Logging Sending Notifications to Your Inbox Viewing Your Error Logs Reading\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2023\/08\/wpcode-featured-image-2.jpg?wsr\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Mircea Sandu\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/using-snippet-error-logging\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wpcode.com\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/#listItem\",\"name\":\"Docs\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/#listItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/categories\\\/docs\\\/troubleshooting\\\/#listItem\",\"name\":\"Troubleshooting\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/categories\\\/docs\\\/troubleshooting\\\/#listItem\",\"position\":3,\"name\":\"Troubleshooting\",\"item\":\"https:\\\/\\\/wpcode.com\\\/categories\\\/docs\\\/troubleshooting\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/using-snippet-error-logging\\\/#listItem\",\"name\":\"Using Snippet Error Logging\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/#listItem\",\"name\":\"Docs\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/using-snippet-error-logging\\\/#listItem\",\"position\":4,\"name\":\"Using Snippet Error Logging\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/categories\\\/docs\\\/troubleshooting\\\/#listItem\",\"name\":\"Troubleshooting\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/#organization\",\"name\":\"WPCode\",\"description\":\"The Best WordPress Code Snippets Plugin\",\"url\":\"https:\\\/\\\/wpcode.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/wpcode.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/logo-wpcode.svg?wsr\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/using-snippet-error-logging\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/using-snippet-error-logging\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/author\\\/msanduawesomemotive-com\\\/#author\",\"url\":\"https:\\\/\\\/wpcode.com\\\/author\\\/msanduawesomemotive-com\\\/\",\"name\":\"Mircea Sandu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/using-snippet-error-logging\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/858afa2a871931eea37bc916f2608b8af2e53953f981b2c8cc72cac52b5570ea?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Mircea Sandu\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/using-snippet-error-logging\\\/#webpage\",\"url\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/using-snippet-error-logging\\\/\",\"name\":\"Using Snippet Error Logging - WPCode\",\"description\":\"Would you like to see exactly what your code snippets are reporting, without opening a single file on your server? In this guide, we'll walk you through turning on WPCode's snippet error logging and reading the results from your WordPress admin. Turning On Error Logging Sending Notifications to Your Inbox Viewing Your Error Logs Reading\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpcode.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wpcode.com\\\/docs\\\/using-snippet-error-logging\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/wpcode.com\\\/author\\\/msanduawesomemotive-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/wpcode.com\\\/author\\\/msanduawesomemotive-com\\\/#author\"},\"datePublished\":\"2023-05-03T11:30:34-04:00\",\"dateModified\":\"2026-10-05T09:53:34-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wpcode.com\\\/#website\",\"url\":\"https:\\\/\\\/wpcode.com\\\/\",\"name\":\"WPCode\",\"description\":\"The Best WordPress Code Snippets Plugin\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/wpcode.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Using Snippet Error Logging - WPCode<\/title>\n\n","aioseo_head_json":{"title":"Using Snippet Error Logging - WPCode","description":"Would you like to see exactly what your code snippets are reporting, without opening a single file on your server? In this guide, we'll walk you through turning on WPCode's snippet error logging and reading the results from your WordPress admin. Turning On Error Logging Sending Notifications to Your Inbox Viewing Your Error Logs Reading","canonical_url":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/#listItem","position":1,"name":"Home","item":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/","nextItem":{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/#listItem","name":"Docs"}},{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/#listItem","position":2,"name":"Docs","item":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/","nextItem":{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/categories\/docs\/troubleshooting\/#listItem","name":"Troubleshooting"},"previousItem":{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/categories\/docs\/troubleshooting\/#listItem","position":3,"name":"Troubleshooting","item":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/categories\/docs\/troubleshooting\/","nextItem":{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/#listItem","name":"Using Snippet Error Logging"},"previousItem":{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/#listItem","name":"Docs"}},{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/#listItem","position":4,"name":"Using Snippet Error Logging","previousItem":{"@type":"ListItem","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/categories\/docs\/troubleshooting\/#listItem","name":"Troubleshooting"}}]},{"@type":"Organization","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/#organization","name":"WPCode","description":"The Best WordPress Code Snippets Plugin","url":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/","logo":{"@type":"ImageObject","url":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2022\/11\/logo-wpcode.svg?wsr","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/#organizationLogo"},"image":{"@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/author\/msanduawesomemotive-com\/#author","url":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/author\/msanduawesomemotive-com\/","name":"Mircea Sandu","image":{"@type":"ImageObject","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/#authorImage","url":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/secure.gravatar.com\/avatar\/858afa2a871931eea37bc916f2608b8af2e53953f981b2c8cc72cac52b5570ea?s=96&d=mm&r=g","width":96,"height":96,"caption":"Mircea Sandu"}},{"@type":"WebPage","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/#webpage","url":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/","name":"Using Snippet Error Logging - WPCode","description":"Would you like to see exactly what your code snippets are reporting, without opening a single file on your server? In this guide, we'll walk you through turning on WPCode's snippet error logging and reading the results from your WordPress admin. Turning On Error Logging Sending Notifications to Your Inbox Viewing Your Error Logs Reading","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/#website"},"breadcrumb":{"@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/#breadcrumblist"},"author":{"@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/author\/msanduawesomemotive-com\/#author"},"creator":{"@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/author\/msanduawesomemotive-com\/#author"},"datePublished":"2023-05-03T11:30:34-04:00","dateModified":"2026-10-05T09:53:34-04:00"},{"@type":"WebSite","@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/#website","url":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/","name":"WPCode","description":"The Best WordPress Code Snippets Plugin","inLanguage":"en-US","publisher":{"@id":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/#organization"}}]},"og:locale":"en_US","og:site_name":"WPCode - The Best WordPress Code Snippets Plugin","og:type":"article","og:title":"Using Snippet Error Logging - WPCode","og:description":"Would you like to see exactly what your code snippets are reporting, without opening a single file on your server? In this guide, we'll walk you through turning on WPCode's snippet error logging and reading the results from your WordPress admin. Turning On Error Logging Sending Notifications to Your Inbox Viewing Your Error Logs Reading","og:url":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/","og:image":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2023\/08\/wpcode-featured-image-2.jpg?wsr","og:image:secure_url":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2023\/08\/wpcode-featured-image-2.jpg?wsr","og:image:width":2400,"og:image:height":1260,"article:published_time":"2023-05-03T11:30:34+00:00","article:modified_time":"2026-10-05T13:53:34+00:00","twitter:card":"summary_large_image","twitter:title":"Using Snippet Error Logging - WPCode","twitter:description":"Would you like to see exactly what your code snippets are reporting, without opening a single file on your server? In this guide, we'll walk you through turning on WPCode's snippet error logging and reading the results from your WordPress admin. Turning On Error Logging Sending Notifications to Your Inbox Viewing Your Error Logs Reading","twitter:image":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-content\/uploads\/2023\/08\/wpcode-featured-image-2.jpg?wsr","twitter:label1":"Written by","twitter:data1":"Mircea Sandu","twitter:label2":"Est. reading time","twitter:data2":"7 minutes"},"aioseo_meta_data":{"post_id":"2055","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2026-10-05 13:54:59","breadcrumb_settings":null,"limit_modified_date":false,"open_ai":"{\"title\":{\"suggestions\":[],\"usage\":0},\"description\":{\"suggestions\":[],\"usage\":0}}","ai":null,"created":"2023-05-03 11:07:00","updated":"2026-10-09 09:39:07","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/\" title=\"Docs\">Docs<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/categories\/docs\/troubleshooting\/\" title=\"Troubleshooting\">Troubleshooting<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\tUsing Snippet Error Logging\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/"},{"label":"Docs","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/"},{"label":"Troubleshooting","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/categories\/docs\/troubleshooting\/"},{"label":"Using Snippet Error Logging","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/docs\/using-snippet-error-logging\/"}],"_links":{"self":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-json\/wp\/v2\/wpcode_doc\/2055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-json\/wp\/v2\/wpcode_doc"}],"about":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-json\/wp\/v2\/types\/wpcode_doc"}],"author":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":6,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-json\/wp\/v2\/wpcode_doc\/2055\/revisions"}],"predecessor-version":[{"id":7329,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-json\/wp\/v2\/wpcode_doc\/2055\/revisions\/7329"}],"wp:attachment":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/wpcode.com\/wp-json\/wp\/v2\/media?parent=2055"}],"curies":[{"name":"wp","href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}