Transparent Logging with Zend_Log




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

Summary: <p>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.<br> 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!</p> <p><strong>Now for today’s episode:<br> </strong></p> <p>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.<br> Grab a <a href="http://zendcasts.googlecode.com/svn/trunk/zc55-transparent-logging-with-zend-log/zc55-transparent-logging-with-zend-log.zip">copy of the project</a> or <a href="http://code.google.com/p/zendcasts/source/browse/#svn/trunk/zc55-transparent-logging-with-zend-log">browse the repository</a>.<br> Enjoy!</p> <div></div>