title: How to write to error log file in PHP
body: <p>I want to write a message to an error log file when executing PHP code.</p>
  
  <p>I am trying to use the PHP <code>error_log()</code> function <a href="http://php.net/function.error_log" rel="noreferrer">Docs</a>.</p>
  
  <p>But it's not working properly for me.</p>