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:

  1. install extension chrome browser
  2. include chromephp in composer.json (that's way - if have different application include path, put there)
  3. now can use zend\log\writer\chromephp send debug-information chrome-console.

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -