{"id":27745,"date":"2014-02-11T21:52:09","date_gmt":"2014-02-11T21:52:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/logfile-debugger\/"},"modified":"2014-03-16T13:49:58","modified_gmt":"2014-03-16T13:49:58","slug":"logfile-debugger","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/logfile-debugger\/","author":13660506,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3","stable_tag":"trunk","tested":"3.7.41","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Log file debugger","header_author":"Philipp Stracker","header_description":"","assets_banners_color":"","last_updated":"2014-03-16 13:49:58","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=5A98CHL224QG6","header_plugin_uri":"","header_author_uri":"http:\/\/www.stracker.net","rating":5,"author_block_rating":0,"active_installs":0,"downloads":751,"num_ratings":0,"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":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"855897","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"855897","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"855897","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"857517","resolution":"4","location":"assets"}},"screenshots":{"1":"<p>That's just a simple code-example for using the debug methods<\/p>","2":"<p>This is the log file viewer in the admin section<\/p>","3":"<p>The log file viewer opened as popup! Only the logfile is displayed, no WordPress header or menu<\/p>","4":"<p><strong>New since v1.1<\/strong>: Choose the format of variable dump!<\/p>"}},"plugin_section":[],"plugin_tags":[83,563,94,2679,908],"plugin_category":[59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-27745","plugin","type-plugin","status-closed","hentry","plugin_tags-admin","plugin_tags-administration","plugin_tags-debug","plugin_tags-debugging","plugin_tags-log","plugin_category-utilities-and-tools","plugin_committers-strackerphil"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/logfile-debugger.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/logfile-debugger\/assets\/screenshot-1.png?rev=855897","caption":"<p>That's just a simple code-example for using the debug methods<\/p>"},{"src":"https:\/\/ps.w.org\/logfile-debugger\/assets\/screenshot-2.png?rev=855897","caption":"<p>This is the log file viewer in the admin section<\/p>"},{"src":"https:\/\/ps.w.org\/logfile-debugger\/assets\/screenshot-3.png?rev=855897","caption":"<p>The log file viewer opened as popup! Only the logfile is displayed, no WordPress header or menu<\/p>"},{"src":"https:\/\/ps.w.org\/logfile-debugger\/assets\/screenshot-4.png?rev=857517","caption":"<p><strong>New since v1.1<\/strong>: Choose the format of variable dump!<\/p>"}],"raw_content":"<!--section=description-->\n<p><em>This plugin is intended to be used by WordPress developers, during development.<\/em><\/p>\n <p>Logfile Debugger basically provides you with 3 new methods:<\/p>\n <ul>\n<li><code>wp_debug(var1, var2, ...)<\/code><\/li>\n<li><code>wp_debug_trace()<\/code><\/li>\n<li><code>wp_describe(var1, var2, ...)<\/code><\/li>\n<\/ul>\n <p>The first two methods will add a new entry to a log file, the last method will dump all specified variables on the screen.<\/p>\n <p>Now the cool part: The plugin also provides a new admin section to view the log file (check the screenshot)! This viewer can even be opened in a stand-alone popup\/separate tab.<\/p>\n <p><strong>Attention<\/strong>:<\/p>\n <p><em>For security reasons this plugin should only be used on a development environment! Every user that is logged in to WordPress can potentially read the log-data. It is your responsibility as a developer to take make sure that no sensitive data is made available to other WordPress users via the logfile.<\/em><\/p>\n <p><strong>Recommended usage<\/strong>:<\/p>\n <p>You should always test if the debug function exists before calling it. This prevents unexpected errors in cases where you forget to remove the wp_debug() or wp_describe() calls form the code while testing your plugin\/theme on installations that do not have the logfile-debugger plugin installed.<\/p>\n <p>Example:<\/p>\n <pre><code>function_exists( 'wp_debug' ) &amp;&amp; wp_debug( 'Current WP object: ', $wp ); <\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>logfile-debugger.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>You will get a new 'View log file' menu-item in the 'Tools' menu<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>Who is this plugin for?<\/h4>\n <p>This plugin is intended as a tool for developers. It should be installed and used only on development environments.<\/p>\n <h4>Why only on development environments?<\/h4>\n <p>The plugin itself has no considerable impact on performance.<\/p>\n <p>However, for <em>security reasons<\/em> this plugin should only be used on a development environment! Every user that is logged in to WordPress can potentially read the log-data. It is your responsibility as a developer to take make sure that no sensitive data is made available to other WordPress users via the logfile.<\/p>\n\n<!--section=changelog-->\n<h4>1.3<\/h4>\n <ul>\n<li>Small improvement in the logfile-output (some linebreaks were missing)<\/li>\n<\/ul>\n <h4>1.2<\/h4>\n <ul>\n<li>Add new dump-option: JSON-Encode<\/li>\n<li>Fix display of log-data that contains HTML code (code is now always escaped)<\/li>\n<\/ul>\n <h4>1.1<\/h4>\n <ul>\n<li>Add new option to choose the format of the variable dump<\/li>\n<\/ul>\n <h4>1.0<\/h4>\n <ul>\n<li>Initial version released<\/li>\n<\/ul>","raw_excerpt":"Small tool for developers to make debugging more easy (and fun)!","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27745"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/strackerphil"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27745"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27745"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27745"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27745"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27745"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}