_isDeveloper; } /** * Standard logger of onexitcustomer * * @param string $message * @param string $level */ public function log($message, $level=Zend_Log::DEBUG){ Mage::log($message, $level, $this->_logFile, true); } /** * Loggin to firebug * * @param string $message * @param int $level */ public function fb($message, $level=Zend_Log::DEBUG){ if(!$this->_isDeveloper) return; $writer = new Zend_Log_Writer_Firebug(); $logger = new Zend_Log($writer); $request = new Zend_Controller_Request_Http(); $response = new Zend_Controller_Response_Http(); $channel = Zend_Wildfire_Channel_HttpHeaders::getInstance(); $channel->setRequest($request); $channel->setResponse($response); ob_start(); $logger->log($message,$level); $channel->flush(); $response->sendHeaders(); } }