Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Logging any error, info, debug to database (like log4j)

Dear experts,

Is there any good example how to log custom error, info or debug in phalcon to database? I loved the way log4j.

Thank you

Apache has a log4php project. It's not built with Phalcon in mind, but it is pretty straightforward. http://logging.apache.org/log4php/

There is also built-in Phalcon logging functionality: http://docs.phalconphp.com/en/latest/reference/logging.html

I would suggest you Monolog.

https://github.com/Seldaek/monolog

it's really powerful