title: Write to error log with local time information and a line break at the end
body: <p>I need to write the local time information , the exception message to a php log file. I don't know why I can't get the format correct. The script I use is this:</p>
  
  <pre><code>  error_log('['.date("F j, Y, g:i a").']'.$msg." &lt;br&gt;", 3,  $phperrorPath);
  </code></pre>
  
  <p>There are two problem with this:</p>
  
  <ol>
  <li>The date is not written in local time, instead it's default to the GMT+0 time; I want to write the machine time information to the log</li>
  <li>After the file is written, it's not break to another line.</li>
  </ol>
  
  <p>How to modify this code?</p>