Welcome Guest, Not a member yet? Register   Sign In
Codeigniter error logging
#1

[eluser]Unknown[/eluser]
I have set error threshold to 1 in config.php.

But the problem is that

Quote:i am getting many errors that is NOT ACTUALLY ERRORS in terms of application logic.

Consider the following code examples

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

As you can see that the above example will not throw errors, but codeigniter will log if an error occurred.

Is it possible to disable error logging dynamically ?

i am expecting something like this

Code:
// ....

   $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

// ...

Thanks.


Messages In This Thread
Codeigniter error logging - by El Forum - 05-10-2013, 12:53 AM
Codeigniter error logging - by El Forum - 05-10-2013, 05:01 AM
Codeigniter error logging - by El Forum - 05-10-2013, 05:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB