{"id":73535,"date":"2017-08-25T21:12:03","date_gmt":"2017-08-25T21:12:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/papertrail-for-wordpress\/"},"modified":"2017-08-25T21:12:03","modified_gmt":"2017-08-25T21:12:03","slug":"logging-with-papertrail","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/logging-with-papertrail\/","author":15618483,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"4.8.28","requires":"3.9.19","requires_php":"","requires_plugins":"","header_name":"Logging with Papertrail","header_author":"nielsschroyen","header_description":"Write php errors and exceptions to Papertrail","assets_banners_color":"03498f","last_updated":"2017-08-25 21:12:03","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/NielsSchroyen","header_plugin_uri":"https:\/\/github.com\/nielsschroyen\/Logging-with-Papertrail","header_author_uri":"https:\/\/www.linkedin.com\/in\/niels-schroyen-4721b241\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1290,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog","faq"],"tags":[],"upgrade_notice":{"1.0":"<p>Initial release of Logging-with-Papertrail<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1719607","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1719607","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1719607","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1719607","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1719607","resolution":"1","location":"assets"}},"screenshots":{"1":"Admin settings page (running with WordPress 4.8 here)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[54286,145530,59208],"plugin_category":[],"plugin_contributors":[145531],"plugin_business_model":[],"class_list":["post-73535","plugin","type-plugin","status-publish","hentry","plugin_tags-error-logging","plugin_tags-exception-logging","plugin_tags-papertrail","plugin_contributors-nielsschroyen","plugin_committers-nielsschroyen"],"banners":{"banner":"https:\/\/ps.w.org\/logging-with-papertrail\/assets\/banner-772x250.png?rev=1719607","banner_2x":"https:\/\/ps.w.org\/logging-with-papertrail\/assets\/banner-1544x500.png?rev=1719607","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/logging-with-papertrail\/assets\/icon-128x128.png?rev=1719607","icon_2x":"https:\/\/ps.w.org\/logging-with-papertrail\/assets\/icon-256x256.png?rev=1719607","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/logging-with-papertrail\/assets\/screenshot-1.png?rev=1719607","caption":"Admin settings page (running with WordPress 4.8 here)"}],"raw_content":"<!--section=description-->\n<p>Do you want to use <strong>Papertrail<\/strong> for <strong>better monitoring<\/strong> your websites? This plugin will enable you to send php-errors to Papertrail even if you do not have the knowledge, time or access to <a href=\"http:\/\/help.papertrailapp.com\/kb\/configuration\/configuring-centralized-logging-from-php-apps\/\">install the proper Papertrail hooks<\/a>. You only need to install the plugin and enter your Papertrail information. The plugin will automatically send all the php errors and exceptions happening within WordPress to papertrail.<\/p>\n\n<h4>Notes<\/h4>\n\n<ul>\n<li>A <a href=\"https:\/\/https:\/\/papertrailapp.com\/\">Papertrail<\/a> account is needed, which is free for most use cases.<\/li>\n<li>Using this plugin will bypas the standard <a href=\"http:\/\/php.net\/manual\/en\/function.set-error-handler.php\">PHP error handler<\/a> and <a href=\"http:\/\/php.net\/manual\/en\/function.set-exception-handler.php\">php exception handler<\/a> within the script execution of WordPress. When the exception is posted to papertrail the exceptions are retrown.<\/li>\n<\/ul>\n\n<h4>Resources<\/h4>\n\n<p><a href=\"https:\/\/github.com\/sc0ttkclark\/papertrail\">Papertrail Logging API<\/a>\n<a href=\"https:\/\/gist.github.com\/troy\/2220679\">Troy's send_remote_syslog.php<\/a>\n<a href=\"http:\/\/php.net\/manual\/en\/function.set-error-handler.php\">Php's error handler<\/a>\n<a href=\"https:\/\/developer.wordpress.org\/plugins\">Plugin Handbook<\/a>\n<a href=\"https:\/\/stackoverflow.com\/questions\/5551668\/what-are-the-best-practices-for-catching-and-re-throwing-exceptions\">Exception handling<\/a>\n<a href=\"https:\/\/github.com\/codecov\/example-php\">PHP code coverage<\/a>\n<a href=\"https:\/\/codex.wordpress.org\/Creating_Options_Pages\">Creating admin option pages<\/a>\n<a href=\"https:\/\/github.com\/codecov\/example-php\">WordPress readme.txt<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Put the plugin in the plugins folder (<code>\/wp-content\/plugins\/<\/code>)<\/li>\n<li>Activate plugin on the plugin page<\/li>\n<li>Enter your Papertrail information in the settings pages under the settings menu<\/li>\n<li>The system option allows you to change the system name within papertrail<\/li>\n<li>The program option allows you to differentiate within papertrail between diffent programs on one machine with the same name<\/li>\n<li>Choose between udp or tcp for your communication, use udp by default fallback to tcp if udp is not allowed on your environment<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Added: First release<\/li>\n<li>Added: Post errors to papertail<\/li>\n<li>Added: Post exceptions to papertrail<\/li>\n<li>Added: Admin settings page for saving papertrail information<\/li>\n<li>Added: Support custom system and program<\/li>\n<li>Added: Support udp and tcp(unenctrypted)<\/li>\n<li>Added: simple test settings on the admin page<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Put the plugin in the plugins folder (<code>\/wp-content\/plugins\/<\/code>)<\/li>\n<li>Activate plugin on the plugin page<\/li>\n<li>Enter your Papertrail information in the settings pages under the settings menu<\/li>\n<li>The system option allows you to change the system name within papertrail<\/li>\n<li>The program option allows you to differentiate within papertrail between diffent programs on one machine with the same name<\/li>\n<li>Choose between udp or tcp for your communication, use udp by default fallback to tcp if udp is not allowed on your environment<\/li>\n<\/ol><\/dd>\n\n<\/dl>","raw_excerpt":"WordPress plugin to forward error messages to Papertrail.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/73535","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=73535"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nielsschroyen"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=73535"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=73535"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=73535"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=73535"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=73535"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=73535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}