Welcome Guest, Not a member yet? Register   Sign In
Logging errors to a database
#1

[eluser]jonez[/eluser]
Hi I'm trying to log PHP error's and 404's to a database. I've tried to overload CI_Log's write_log and CI_Exceptions show_error, but in both cases the main CI object hasn't been created so I can't use DB methods.

I tried wrapping get_instance in a try/catch, but it still fails. I'm assuming the error handlers are setup this way to catch errors in core files.

Does anyone have a clever solution? I'm not opposed to using a library over a core extension as long as it doesn't require custom error handling in methods. Ideally I'd like errors to propagate as they do now and simply add logging to a database.

Thanks!


Messages In This Thread
Logging errors to a database - by El Forum - 11-16-2013, 07:30 AM
Logging errors to a database - by El Forum - 11-21-2013, 06:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB