Have a look at the incubator repo. Wojtek has submitted an Error handler class that does all the heavy lifting for you.
Also look at this bootstrap file
https://github.com/niden/phalcon-angular-harryhogfootball/blob/master/app/library/NDN/Bootstrap.php
The initDatabase function has code to log every query and I follow a similar approach to Wojtek's with my own error class handler.
--
You received this message because you are subscribed to the Google Groups "Phalcon PHP Framework" group.
To post to this group, send email to pha...@googlegroups.com.
To unsubscribe from this group, send email to phalcon+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/phalcon/-/hztcCG6idAsJ.
For more options, visit https://groups.google.com/groups/opt_out.