{"id":20150,"date":"2012-09-30T10:34:17","date_gmt":"2012-09-30T10:34:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/log-viewer\/"},"modified":"2014-05-04T14:00:57","modified_gmt":"2014-05-04T14:00:57","slug":"log-viewer","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/log-viewer\/","author":9779540,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"14.05.04","stable_tag":"14.05.04","tested":"3.9.40","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"Log Viewer","header_author":"Markus Fischbacher","header_description":"","assets_banners_color":"ebeae8","last_updated":"2014-05-04 14:00:57","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=CDNHTJWQEP5S2","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/log-viewer\/","header_author_uri":"https:\/\/plus.google.com\/+MarkusFischbacher","rating":4.7,"author_block_rating":0,"active_installs":500,"downloads":60848,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"None yet.":""},"ratings":{"1":0,"2":0,"3":0,"4":"2","5":"5"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"801608","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["13.11.09","13.12.22","14.04.21","14.04.22","14.05.04","2012.09.30","2012.10.01","2012.10.06","2013.04.02","2013.05.19"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"801608","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"801608","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"907756","resolution":"3","location":"assets"}},"screenshots":{"1":"Screenshot shows the file view screen ( with MP6 \/ WordPress &gt; 3.8 )","2":"Screenshot shows the file view screen","3":"Screenshot shows Debug Bar integration"}},"plugin_section":[],"plugin_tags":[83,1391,94,734,908],"plugin_category":[59],"plugin_contributors":[80912],"plugin_business_model":[],"class_list":["post-20150","plugin","type-plugin","status-closed","hentry","plugin_tags-admin","plugin_tags-advanced","plugin_tags-debug","plugin_tags-development","plugin_tags-log","plugin_category-utilities-and-tools","plugin_contributors-mfisc","plugin_committers-mfisc"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/log-viewer_ebeae8.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/log-viewer\/assets\/screenshot-1.png?rev=801608","caption":"Screenshot shows the file view screen ( with MP6 \/ WordPress &gt; 3.8 )"},{"src":"https:\/\/ps.w.org\/log-viewer\/assets\/screenshot-2.png?rev=801608","caption":"Screenshot shows the file view screen"},{"src":"https:\/\/ps.w.org\/log-viewer\/assets\/screenshot-3.png?rev=907756","caption":"Screenshot shows Debug Bar integration"}],"raw_content":"<!--section=description-->\n<p>** FULLY COMPATIBLE WITH MULTISITE INSTALLATIONS **<\/p>\n\n<p>** The plugin is recommended to use only in development. **<\/p>\n\n<p>This plugin provides an easy way to view any *.log files directly in admin panel. Also you can perform simple actions like empty the file or deleting it.<\/p>\n\n<p>To activate Wordpress logging to file you have to set <code>define( 'WP_DEBUG_LOG', true );<\/code> in your wp-config.php file.\nIn Multisite installations you have to be Super Admin for using this plugin.\nAdditionally in Singlesite installations you have to have the 'edit_plugins' capability which is by default only granted to admins.<\/p>\n\n<p>There is an first integration for a panel to the <a href=\"https:\/\/wordpress.org\/plugins\/debug-bar\/\" title=\"Debug Bar\">Debug Bar Plugin<\/a>. The integration could be deactivated by setting ENABLE_DEBUGBAR_INTEGRATION to false in log-viewer.php.<\/p>\n\n<p>If you're experiencing problems please report through support forum or check FAQ section. If you have suggestions feel free to submit your view.\nLog-Viewer is also listed on the excellent <a href=\"http:\/\/wordpress.org\/extend\/plugins\/developer\/\" title=\"WordPress Developer Plugin\">Developer Plugin<\/a> which comes directly by the awesome guys at Automattic!<\/p>\n\n<p><strong>Known limitations \/ Bugs:<\/strong><\/p>\n\n<ul>\n<li>Autorefresh is currently fixed at 15 seconds if enabled - will let you choose custom timing soon<\/li>\n<li>after an action in files view a wp_redirect should be called but there's already output present so not working. Workaround is to unset all variables.<\/li>\n<li>User settings stored \"manually\"; switch to wordpress own *_user_setting functions but currently problems on cookie\/header_sent limiting<\/li>\n<li>User settings stored in wp_options ( thats ok ) but on multisite installations they are stored in each wp_*_options table<\/li>\n<\/ul>\n\n<p><strong>ToDo:<\/strong><\/p>\n\n<ul>\n<li>Adding Dashboard functionality ( and\/or File View in Dashboard menu (WP_NETWORK_ADMIN) )<\/li>\n<li>Translations ( DE )<\/li>\n<li>Cleanup on uninstalling<\/li>\n<li>Message if WP_DEBUG not set ( on activation? )<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload to your plugins folder, usually found at 'wp-content\/plugins\/'<\/li>\n<li>Activate the plugin on the plugins screen<\/li>\n<li>You may want to activate WP logging setting WP_DEBUG_LOG to TRUE in your wp-config.php file<\/li>\n<li>Navigate to Tools &gt; Log Viewer to show and view log files<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>I am admin! Why can't i see the Tools &gt; Log Viewer menu entry?<\/dt>\n<dd><p>If your on a Multisite installation you have to be a Super Admin.\nIf your on a Singlesite installation you additionally have to have the 'edit_plugins' role.<\/p><\/dd>\n<dt>But i am a Super Admin with super powers and still can't see the Tools &gt; Log Viewer menu entry!<\/dt>\n<dd><p>Pow! Slam! Donk! ... as stated you have to have 'edit_plugins' role. There are Wordpress constants like 'DISALLOW_FILE_EDIT' which deactivates this even for the greatest of the admins.\nHave a look at <a href=\"http:\/\/codex.wordpress.org\/Roles_and_Capabilities\">http:\/\/codex.wordpress.org\/Roles_and_Capabilities<\/a> or do a websearch for 'wordpress.org DISALLOW_FILE_EDIT' and have a talk to your site maintainer.<\/p><\/dd>\n<dt>How to enable debug.log<\/dt>\n<dd><p>Simply add <code>define( 'WP_DEBUG_LOG', true );<\/code> in your wp-config.php file. This is not recommended on production environments!<\/p><\/dd>\n<dt>I changed my error_log to something other than WP default<\/dt>\n<dd><p>That's ok ... as long as the file extension is .log and it's located in WP_CONTENT_DIR. Other sources or extensions aren't supported for now.<\/p><\/dd>\n<dt>Can i show other files?<\/dt>\n<dd><p>Yes you can! As long as they are located in WP_CONTENT_DIR and have a .log extension. Other sources or extensions aren't supported for now.<\/p><\/dd>\n<dt>In Files View i only get the error message \"Could not load file.\" or \"No files found.\"<\/dt>\n<dd><p>It looks like there isn't a *.log file in WP_CONTENT_DIR. Which could mean there are no errors. Yay!\nIf there are files, it could be that they are not readable ( check your permissions ) or it's a bug ... Booo!<\/p><\/dd>\n<dt>I don't see File Actions options<\/dt>\n<dd><p>The options are only displayed if the file is writeable. Check your permissions.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>14.05.04<\/h4>\n\n<ul>\n<li>Fixed : error calling method static<\/li>\n<\/ul>\n\n<h4>14.04.22<\/h4>\n\n<ul>\n<li>Added first Debug Bar integration<\/li>\n<\/ul>\n\n<h4>14.04.21<\/h4>\n\n<ul>\n<li>nothing changed ( tag for Debug-Bar functionality )<\/li>\n<\/ul>\n\n<h4>13.12.22<\/h4>\n\n<ul>\n<li>rewrite branch merged to trunk<\/li>\n<li>full Multisite support ( currently only super admin! )<\/li>\n<\/ul>\n\n<h4>13.11.11<\/h4>\n\n<ul>\n<li>rewrite based on the great <a href=\"https:\/\/github.com\/tommcfarlin\/WordPress-Plugin-Boilerplate\">WordPress-Plugin-Boilerplate<\/a> of Tom McFarlin<\/li>\n<li>optimizations for Multisite installations<\/li>\n<li>securing Singlesite installations<\/li>\n<\/ul>\n\n<h4>13.11.09<\/h4>\n\n<ul>\n<li>moved to PhpStorm for development<\/li>\n<li>changed build script to Phing<\/li>\n<li>started complete rewrite for MU optimizations<\/li>\n<\/ul>\n\n<h4>13.6.25<\/h4>\n\n<ul>\n<li>changed version string for better readability<\/li>\n<\/ul>\n\n<h4>2013.05.19<\/h4>\n\n<ul>\n<li>added Display Options above file list<\/li>\n<li>added Autorefresh Option ( currently fixed at every 15 seconds )<\/li>\n<li>added FIFO \/ FILO Option ( FIFO = displays file as is; FILO = displays file reversed )<\/li>\n<\/ul>\n\n<h4>2013.04.02<\/h4>\n\n<ul>\n<li>moved from sublime text to netbeans for development<\/li>\n<li>modified structure for standard compliance ( Support Topic by nickdaugherty )<\/li>\n<\/ul>\n\n<h4>2012.10.06<\/h4>\n\n<ul>\n<li>added more files ( currently only WP_CONTENT_DIR and *.log )<\/li>\n<li>added file info<\/li>\n<li>started revamp of class structure<\/li>\n<\/ul>\n\n<h4>2012.10.01<\/h4>\n\n<ul>\n<li>check if file is writeable; if not cancel actions \/ display message<\/li>\n<li>adjusting wp-plugin contents<\/li>\n<\/ul>\n\n<h4>2012.09.30<\/h4>\n\n<ul>\n<li>initial Wordpress.org Plugins commit<\/li>\n<li>restructured for svn and wp-plugins hosting<\/li>\n<li>solved problems with wp-plugins site<\/li>\n<\/ul>\n\n<h4>2012.09.29<\/h4>\n\n<ul>\n<li>submit for Wordpress.org approvement<\/li>\n<\/ul>","raw_excerpt":"This plugin provides an easy way to view *.log files directly in the admin panel.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/20150","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=20150"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mfisc"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=20150"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=20150"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=20150"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=20150"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=20150"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=20150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}