How to use Incubator library to log Coding errors and sql errors to a file

I want to integrate incubator library to my own application like invo to log all coding errors, sql errors how should I integrate it.


Which component of the incubator you want to use to log all coding errors?

edited Sep '14

Thanks for fast reply.

I want to use Error.php and handler.php defined in incubtor/library/phalcon/Error. Which is logging errors with proper classification.