ZF-4181: Logging after Zend_Controller_Front dispath() has completed
In some cases it is useful to log to Firebug after the front controller has finished dispatching.
This should be possible by buffering the output, logging the usual way and then flushing the headers again with:
At the moment this does not work as the Wildfire Protocol Message Index gets reset after the flush causing a previously sent header to be over-written.
The index needs to be kept for the entire duration of the page request.