/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Place this in your bootstrap file before dispatching your front controller $logger = new Zend_Log(); $writer = new Zend_Log_Writer_Firebug(); $logger->addWriter($writer); //make an instance of your logger you can use Zend_Registry::set('logger',$logger); //Place this code where needed $logger = Zend_Registry::get('logger');