{"id":624,"date":"2021-11-14T20:37:25","date_gmt":"2021-11-15T01:37:25","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=624"},"modified":"2024-02-08T08:45:21","modified_gmt":"2024-02-08T13:45:21","slug":"quick-way-to-find-out-which-log-file-is-logging-errors","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/quick-way-to-find-out-which-log-file-is-logging-errors\/","title":{"rendered":"Quick way to find out which log file is logging errors"},"content":{"rendered":"\n<p>On development systems it is common practice to have different log file to log PHP error logs for different tools and different versions of the same tool. Generally it is a good idea to use meaningful names to make it easy to distinguish between the log files. If you have doubts, you can either look inside the code to see which error log file is being called or do the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd ~\n$ ls -al \/var\/log\/httpd before.diff<\/code><\/pre>\n\n\n\n<p>Run the tool such that it would write something to the log file. Then<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ls -al \/var\/log\/httpd after.diff\n$ diff before.diff after.diff<\/code><\/pre>\n\n\n\n<p>The diff file would show the file(s) which have changed. Read these files to see whether they are indeed the correct files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On development systems it is common practice to have different log file to log PHP error logs for different tools and different versions of the same tool. Generally it is a good idea to use meaningful names to make it easy to distinguish between the log files. If you have doubts, you can either look [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[512],"tags":[],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-misc"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=624"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/624\/revisions"}],"predecessor-version":[{"id":625,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/624\/revisions\/625"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}