{"id":42996,"date":"2016-04-05T22:41:08","date_gmt":"2016-04-05T22:41:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/debug-log\/"},"modified":"2016-05-02T18:51:27","modified_gmt":"2016-05-02T18:51:27","slug":"debug-log","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/debug-log\/","author":14462613,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3","stable_tag":"0.3","tested":"4.5.33","requires":"2.6.0","requires_php":"","requires_plugins":"","header_name":"Debug Log","header_author":"Andrew J Klimek","header_description":"","assets_banners_color":"c8c4c2","last_updated":"2016-05-02 18:51:27","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/ambientsleepingpill.com\/","header_plugin_uri":"","header_author_uri":"https:\/\/readycat.net","rating":5,"author_block_rating":0,"active_installs":100,"downloads":3705,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1387778","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1387778","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1387778","resolution":"2","location":"assets"}},"screenshots":{"1":"Basic Screenshot","2":"Warning before loading big files."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94,906,908],"plugin_category":[59],"plugin_contributors":[88101],"plugin_business_model":[],"class_list":["post-42996","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_tags-error","plugin_tags-log","plugin_category-utilities-and-tools","plugin_contributors-andrewklimek","plugin_committers-andrewklimek"],"banners":{"banner":"https:\/\/ps.w.org\/debug-log\/assets\/banner-772x250.png?rev=1387778","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/debug-log_c8c4c2.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/debug-log\/assets\/screenshot-1.png?rev=1387778","caption":"Basic Screenshot"},{"src":"https:\/\/ps.w.org\/debug-log\/assets\/screenshot-2.png?rev=1387778","caption":"Warning before loading big files."}],"raw_content":"<!--section=description-->\n<p>If the log is long, the latest lines are show at the top to avoid scrolling.  Line numbers are shown for reference.<\/p>\n\n<p>Logs over 5MB do not load until you confirm you are sure, or you can opt to delete the log and start afresh.<\/p>\n\n<p>Only admins can view (or anyone you give the capability \"manage_options\").<\/p>\n\n<p>Debug Log only works if it's enabled in wp-config.php.  See https:\/\/codex.wordpress.org\/Debugging_in_WordPress#WP_DEBUG_LOG<\/p>\n\n<p>Recommended configuration:<\/p>\n\n<pre><code>define( 'WP_DEBUG', true );\/\/ just toggle this line to false to turn off\nif ( WP_DEBUG ) {\n    define( 'WP_DEBUG_LOG', true );\n    define( 'WP_DEBUG_DISPLAY', false );\n    @ini_set( 'display_errors', 0 );\n}\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Install as you would any plugin.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I change the number lines in Latest Errors?<\/dt>\n<dd><p>add_filter( 'debug_log_latest_count', function(){ return 20; } );<\/p><\/dd>\n<dt>How do I turn Latest Errors off?<\/dt>\n<dd><p>Same as above but use 0... or be fancy:\n    add_filter( 'debug_log_latest_count', '__return_false' );<\/p><\/dd>\n<dt>How do I change or turn off the file size check?<\/dt>\n<dd><p>Same deal.  The number here is megabytes.<\/p>\n\n<pre><code>add_filter( 'debug_log_too_big', function(){ return 2; } );\n\nadd_filter( 'debug_log_too_big', '__return_false' );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.3<\/h4>\n\n<ul>\n<li>Float delete button for easier access<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added \"Recent Errors\" functionality<\/li>\n<li>Added snippet to paste in wp-config when debug is off<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"View and Delete the debug log from the Tools menu.  Extremely light and simple.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42996"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/andrewklimek"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42996"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42996"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42996"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42996"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42996"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}