{"id":4812,"date":"2016-03-15T11:40:34","date_gmt":"2016-03-15T11:40:34","guid":{"rendered":"https:\/\/www.techrounder.com\/blog\/wordpress-disable-error-logging-avoid-huge-error-log-file\/"},"modified":"2026-01-04T11:36:56","modified_gmt":"2026-01-04T11:36:56","slug":"wordpress-disable-error-logging-avoid-huge-error-log-file","status":"publish","type":"post","link":"https:\/\/www.techrounder.com\/blog\/wordpress-disable-error-logging-avoid-huge-error-log-file\/","title":{"rendered":"WordPress Disable Error Logging to avoid Huge Error Log File"},"content":{"rendered":"<p>Sometimes the WordPress error log file will create huge headache for some users since it creates huge file in some cases. It will sometimes affect the hosting too if you have only less space in your server. In order to avoid logging of error, please add the following code in your <strong>wp-config.php<\/strong> file. Add the code below <em><strong>define(&#8216;WP_DEBUG&#8217;, false); <\/strong><\/em> line.<\/p>\n<pre lang=\"php\">\r\n@ini_set('log_errors','Off'); \/\/ enable or disable php error logging (use 'On' or 'Off')\r\n@ini_set('display_errors','Off'); \/\/ enable or disable public display of errors (use 'On' or 'Off')\r\n<\/pre>\n<p>Done, no more error logging now.<\/p>\n","protected":false},"excerpt":{"rendered":"Sometimes the WordPress error log file will create huge headache for some users since it creates huge file&hellip;","protected":false},"author":2,"featured_media":268,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","csco_post_video_location":[],"csco_post_video_location_hash":"","csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0,"csco_post_video_bg_volume":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-4812","post","type-post","status-publish","format-standard","has-post-thumbnail","category-wordpress","cs-entry","cs-video-wrap"],"_links":{"self":[{"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/posts\/4812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/comments?post=4812"}],"version-history":[{"count":0,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/posts\/4812\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/media\/268"}],"wp:attachment":[{"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/media?parent=4812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/categories?post=4812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/tags?post=4812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}