title: PHP CodeIgniter Error Log Not working properly
body: <p>I've following settings in php.ini-</p>
  
  <pre><code>error_reporting = E_ALL | E_NOTICE | E_STRICT|E_WARNING
  display_errors = Off
  log_errors = On
  error_log = "/var/log/php_errors.log"
  </code></pre>
  
  <p>And config.php in CodeIgniter-</p>
  
  <pre><code>$config['log_threshold'] = 1;
  $config['log_path'] = getcwd() . '/' . SYSDIR . '/logs/';
  </code></pre>
  
  <p>In the Index.php file-</p>
  
  <pre><code>case 'development':
  error_reporting(E_ALL);
  break;
  
  case 'testing':
  case 'production':
       error_reporting(0);
  </code></pre>
  
  <p>When it's "development" in Index.php, i see warnings, and error messages also on webpage, PHP Fatal error, PHP Parse error in php_errors.log file. But if I make it "Production", no error/warnings are not displayed nor logged in the file. How do I log all errors and messages without displaying? </p>
  
  <p>(Just to mention here- The folder application/logs/ is 777 and there all I have is index.html that has "403 Forbidden" written in it. )</p>