title: What is SAPI and when would you use it?
body: <p>I've been learning about error handling in PHP recently and came across the <a href="http://docs.php.net/manual/en/function.error-log.php" rel="noreferrer"><code>error_log()</code> function</a>.</p>
  
  <p>In the PHP manual, it talks about all the error log types and I understand all of them except for type 3 which states that the error message is sent directly to the SAPI logging handler. My question is what exactly is SAPI and when would you want to use it?</p>