Reputation: 197
With Zend Framework 1.12 you can use Zend_Log_Writer_Firebug
to write log information to the firebug console. Is there a way to pass the output to the chrome debugger console?
$logger = new Zend_Log();
$writer = 'production' == $this->getEnvironment() ? new Zend_Log_Writer_Stream(APPLICATION_PATH .'/../data/logs/app.log') : new Zend_Log_Writer_Firebug();
$logger->addWriter($writer);
if ('production' == $this->getEnvironment()) {
$filter = new Zend_Log_Filter_Priority(Zend_Log::DEBUG);
$logger->addFilter($filter);
}
$this->_logger = $logger;
Zend_Registry::set('log', $logger);
}
Upvotes: 0
Views: 1015
Reputation: 1643
I am using Chrome Logger. It's a little bit more complicated than with Firebug but no big deal:
Zend\Log\Writer\ChromePHP
to send debug-information to your Chrome-console.Upvotes: 0