How to output Zend log information to chrome debugger console? -
with zend framework 1.12 can use zend_log_writer_firebug
write log information firebug console. there way pass output 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); }
i using chrome logger. it's little bit more complicated firebug no big deal:
Comments
Post a Comment