Return to Snippet

Revision: 35068
at November 2, 2010 02:04 by aurorius


Initial Code
// create the logger and log writer
    $writer = new Zend_Log_Writer_Firebug();
    $logger = new Zend_Log($writer);

    // get the wildfire channel
    $channel = Zend_Wildfire_Channel_HttpHeaders::getInstance();

    // create and set the HTTP response
    $response = new Zend_Controller_Response_Http();
    $channel->setResponse($response);

    // create and set the HTTP request
    $channel->setRequest(new Zend_Controller_Request_Http());

    // record log messages
    $logger->info('info message');
    $logger->warn('warning message');
    $logger->err('error message');

    // insert the wildfire headers into the HTTP response
    $channel->flush();

    // send the HTTP response headers
    $response->sendHeaders();

Initial URL
http://stackoverflow.com/questions/3507165/firephp-doesnt-always-write-log-messages

Initial Description
The following example below shows how to make FirePHP get the header info it needs without using the FrontController.

Initial Title
Using FirePHP without FrontController

Initial Tags

                                

Initial Language
PHP