I needed to replace the default file log in CakePHP with one based on mysql instead. I shared the project on Bitbucket if someone else would like to do something similar.
Why is this better than file log?
- Easier to search
- Handles large amount of logging much better
- Has better performance (at least in some cases)