Quantcast

ZF1: problem logging to Firebug console

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

ZF1: problem logging to Firebug console

Mike Wright
Hi all,

Using ZF1 on Fedora 14, Firefox 13, Firebug 1.10.2.

This is a stumper.  It used to work but stopped.

The following is in my Bootstrap.php:

protected function _initLog()
{
   $log = new Zend_Log();
   $log->addWriter(new Zend_Log_Writer_Firebug());
   return $log;
}

To use it I pull it into a Controller and then call it like so:

$this->log->info('some stuff to log');

Now looking at the Firebug console nothing shows up but if I inspect the
headers I see that all of the WildFire stuff is there and contains the
desired log data.

Does anybody have any idea what could be wrong?  Is there perhaps some
global that needs to be enabled for it to display?

Having to inspect headers or dump the log data into a View is
inefficient and tedious.

Thanks for any insight,
Mike Wright

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: ZF1: problem logging to Firebug console

Razorblade

Hi Mike,
I had the same problem in the past,
for me the solution was to enable the 'net' panel of Firebug.
Do you have it enabled?

Cheers

Sergio Rinaudo




> Date: Mon, 6 Aug 2012 10:32:37 -0700
> From: [hidden email]
> To: [hidden email]
> Subject: [fw-general] ZF1: problem logging to Firebug console
>
> Hi all,
>
> Using ZF1 on Fedora 14, Firefox 13, Firebug 1.10.2.
>
> This is a stumper.  It used to work but stopped.
>
> The following is in my Bootstrap.php:
>
> protected function _initLog()
> {
>    $log = new Zend_Log();
>    $log->addWriter(new Zend_Log_Writer_Firebug());
>    return $log;
> }
>
> To use it I pull it into a Controller and then call it like so:
>
> $this->log->info('some stuff to log');
>
> Now looking at the Firebug console nothing shows up but if I inspect the
> headers I see that all of the WildFire stuff is there and contains the
> desired log data.
>
> Does anybody have any idea what could be wrong?  Is there perhaps some
> global that needs to be enabled for it to display?
>
> Having to inspect headers or dump the log data into a View is
> inefficient and tedious.
>
> Thanks for any insight,
> Mike Wright
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
         
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ZF1: problem logging to Firebug console

Mike Wright
On 08/06/2012 11:28 AM, Sergio Rinaudo wrote:
>
> Hi Mike,
> I had the same problem in the past,
> for me the solution was to enable the 'net' panel of Firebug.
> Do you have it enabled?
>
Thank you, Sergio.  That was it.

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Loading...