Welcome Guest, Not a member yet? Register   Sign In
Error logging question
#1

[eluser]Jonny Noog[/eluser]
Hello everyone,

I'm new to CI, I'm planning on using it for a project I'm currently working on, so far it's looking like just what I need.

I gather that CI can log errors to it's log file in system/logs. In system/application/config/config.php, if I set the log threshold to 4 and in the main index.php, I set the error reporting to E_ALL, then deliberately generate a syntax error, I see the error logged to the browser, but I only get debug messages written to the log file like so:

Code:
DEBUG - 2009-04-21 13:49:12 --> Config Class Initialized
DEBUG - 2009-04-21 13:49:12 --> Hooks Class Initialized
DEBUG - 2009-04-21 13:49:12 --> URI Class Initialized
DEBUG - 2009-04-21 13:49:12 --> Router Class Initialized
DEBUG - 2009-04-21 13:49:12 --> Output Class Initialized
DEBUG - 2009-04-21 13:49:12 --> Input Class Initialized
DEBUG - 2009-04-21 13:49:12 --> Global POST and COOKIE data sanitized
DEBUG - 2009-04-21 13:49:12 --> Language Class Initialized

I was hoping that I could log PHP errors and stuff to the log file too... Is there a way to do this? Preferably while not outputting those same errors to the browser? Or am I misunderstanding how things can be logged?
#2

[eluser]Jonny Noog[/eluser]
Bump?

Any assistance much appreciated.

I'll even distil my question down to this: How do I get more than just debug messages appearing in the log file? I've set the log_threshold to 4 and it appears to make no difference.




Theme © iAndrew 2016 - Forum software by © MyBB