我已经设置错误级别为1
在config.php
。 但问题是,我得到很多错误,是NOT ACTUALLY ERRORS in terms of application logic
。Codeigniter错误日志
考虑下面的代码示例
$deleted = @unlink($filename);
$imap_uid = @imap_uid($con,$msgno);
正如你可以看到,上面的例子不会抛出错误,但是如果出现错误笨会记录。
是否可以动态禁用错误日志记录?
我期待这样的事情
// ....
$this->error_log = 0; // disable error logging
//Perform some operation that which may log an error,even its suppressed
$this->error_log = 1; //enable it again
// ...
感谢。
感谢..它的工作.. – Red 2013-05-10 09:07:45