Forums

PHP error handling + logging - best way

Badeda 02 Dec, 2014
Hello,

I am planning a bigger Project and ask my self how to implement Error Logging the best way.
I would like to logg standard php Errors and also dump some variables when the programm comes into an unexpected situation.

It would be super to have something like "throw error" or "on error" or "try{} catch(e) {}"

Best would be to logg errors to a database table.
Second best would be to write them into a logfile.

I'm looking forward to some Ideas how to implement.

best Regards
Frank Hofmann
GreyHead 02 Dec, 2014
Hi Frank,

This doesn't appear to be a ChronoForms question, and may not be a Joomla! one either. Joomla! does have built in logging code that you an use.

Bob
This topic is locked and no more replies can be posted.