title: Code Igniter logging too much
body: <p>In my CI config file I have this logging treshold set:</p>
  
  <pre><code>$config['log_threshold'] = 1;
  </code></pre>
  
  <p>In index.php, I have set the following error reporting:</p>
  
  <pre><code>error_reporting(E_ERROR);
  </code></pre>
  
  <p>My expectation is that this will log any CI errors that I log (using <code>log_message('error','my error message')</code>), as well as any PHP errors. However, I would expect that it will not log PHP notices, only errors. However, when I look at the log files, it seems to log PHP notices too:</p>
  
  <blockquote>
    <p><strong>ERROR - 2009-12-18 13:21:50—> Severity: Notice —> Undefined variable: pageindex /var/www/apps/OS4W/system/application/views/user/view.php 12<br>
    ERROR - 2009-12-18 13:21:50—> Severity: Notice —> Undefined variable: friendsmode /var/www/apps/OS4W/system/application/views/user/activitytable.php 207</strong></p>
  </blockquote>
  
  <p>Although the log lines start with “ERROR”, in reality this seems to be a PHP notice, kind of like a warning, that I do not want to log. How can I make sure only CI and PHP errors are logged, yet not PHP notices? I thought <code>error_reporting(E_ERROR)</code> would do just that? </p>