Zend Screencasts: Video Tutorials about the Zend PHP Framework  (iphone)

Transparent Logging with Zend_Log

06.15.2010 - By Produced by Jon LebensoldPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

First of all, I’d like to thank you all for your patience! Zendcasts takes quite a bit of time and research to put together and I’m deeply touched by all your support.

On a personal note, my wife and I are heading out of North America in a week to visit Namibia and South Africa for 3 months. I’m going to do my best to keep up Zendcasts on a weekly basis, however my connectivity and upload speed will be limited. We’ll see how it goes!

Now for today’s episode:

I was working on a project for a client the other day and noticed a couple of lines in the ErrorController for automatically logging errors with Zend_Log. In 10 minutes, you can have a fully integrated logging framework. I also implement a singleton pattern for reusing your Zend_Log configuration (defined in the application.ini) anywhere else in your application.

Grab a copy of the project or browse the repository.

Enjoy!

More episodes from Zend Screencasts: Video Tutorials about the Zend PHP Framework (iphone)