php - Codeigniter error log -


i have set error level 1 in config.php. problem getting many errors not errors in terms of application logic.

consider following code examples

  $deleted = @unlink($filename);    $imap_uid = @imap_uid($con,$msgno); 

as can see above example not throw errors, codeigniter log if error occurred.

is possible disable error logging dynamically ?

i expecting this

 // ....     $this->error_log = 0; // disable error logging     //perform operation may log error,even suppressed      $this->error_log = 1; //enable again   // ... 

thanks.

you can extend ci_log class adding setters $_enabled

class my_log extends ci_log {     function enable_logging($item=true) {          $this->_enabled = (bool)$item;     } } 

now can this

$this->log->enable_logging(false);//disable

$this->log->enable_logging();//enable


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -