title: PHP's error_log() vs syslog()
body: <p>I'm trying to decide what functionality to use for logging to a custom file.</p>
  
  <p><strong>Background</strong><br>
  We have several PHP processes, both running as Apaches (mod_php) and as Deamons (CLI, forked). I would like to be able to specify a log file per process/task to write to. For both the Apache processes as the Deamons, multiple processes will be writing to the same file.</p>
  
  <p><strong>Options</strong><br>
  PHP offers both <a href="http://php.net/manual/function.error-log.php"><code>error_log()</code></a> and <a href="http://php.net/manual/function.syslog.php"><code>syslog()</code></a>. Both seem to offer more or less the same functionality.  </p>
  
  <p><strong>My question</strong>  </p>
  
  <ul>
  <li>What are the pros and cons of those functions?</li>
  <li>Which one to choose? (<strong>and why?</strong>)</li>
  <li>What if I drop the requirement of multiple files?</li>
  </ul>