{"id":1438,"date":"2018-01-19T19:22:50","date_gmt":"2018-01-19T19:22:50","guid":{"rendered":"http:\/\/goofy-trucks.flywheelsites.com\/file-based-custom-logging-page-5\/"},"modified":"2018-01-19T19:24:47","modified_gmt":"2018-01-19T19:24:47","slug":"file-based-custom-logging-page-5","status":"publish","type":"post","link":"https:\/\/phpbuilder.com\/file-based-custom-logging-page-5\/","title":{"rendered":"File based, custom logging Page 5"},"content":{"rendered":"<div class=\"phpbuilder-content\">\n<div class=\"phpbuilder-meta\">\n<div class=\"\">By John Starkey<\/div>\n<div class=\"\">on September 30, 2002<\/div>\n<\/p><\/div>\n<div id=\"overflow-content\">\n<h2>Added Advantages<\/h2>\n<div class=\"articlePara\">\nI particularly like logging my errors to files because you can always open a shell on Linux\/Unix<br \/>\nand do &#8216;tail -f \/tmp\/article.log&#8217; to view any errors in real time. Even if the site is not in a<br \/>\nproduction state it can still be of great benefit, provided your error handling is detailed<br \/>\nenough to lead you to the cause.<\/div>\n<div class=\"articlePara\">\nAnother great advantage of logging to a file: if you have access to the config file for the<br \/>\nLinux\/Unix binary &#8216;logrotate&#8217;, you can rotate these files automatically. This will prevent<br \/>\nthem from growing too big and will provide an archive over several weeks or months.<\/div>\n<div class=\"articleHeader\">\nCiao<\/div>\n<div class=\"articlePara\">\nAs stated, this is intended for the beginner programmer and is only one of a whole plethora of ways<br \/>\nto log your errors. The above example will log only the errors you send to it, which is obviously<br \/>\nnot the most optimal way to handle your errors. In the next article, I will delve into errors that<br \/>\ncome directly from the PHP parser.<\/div>\n<div class=\"articlePara\">\nI hope this helps! Til next time&#8230;.<\/div>\n<\/div>\n<p><\/p>\n<div style=\"float: left; padding:15px; color:#17AAF3\">\n<div style=\"float:left; padding:2px;\"><a class=\"paginationPageLink\" href=\"starkey20020930fdb0.html?page=4\">\u00ab Previous Page<\/a><\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"starkey20020930.html\">1<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"starkey200209304658.html?page=2\">2<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"starkey200209309ba9.html?page=3\">3<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"starkey20020930fdb0.html?page=4\">4<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"background-color:#B6E5FC; font-size:16px; margin-top:1px; padding:1px 4px 1px 4px; color:#000; font-style:bold; float:left;\">5<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In my opinion, the best thing about working in the development phase is the liberty to throw your errors to the browser, without too many worries<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1438","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/comments?post=1438"}],"version-history":[{"count":1,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1438\/revisions"}],"predecessor-version":[{"id":3296,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1438\/revisions\/3296"}],"wp:attachment":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/media?parent=1438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/categories?post=1438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/tags?post=1438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}