Christoph Dorn
2009-01-14 02:33:33 UTC
I have made some important updates to Zend_Wildfire. Code is in the SVN
trunk.
When logging objects in frameworks like ZF there can be many object
members that while important to the framework are of less interest when
debugging. If these members are logged they bloat the log message that
is sent to the client, they will slow down the client UI and make it
harder to inspect the members you actually want to see.
You can now exclude specific object members by class name and member
name with:
$firephp = Zend_Wildfire_Plugin_FirePhp::getInstance();
$firephp->setObjectFilter('Class_Name',array('Member1','Member2'));
When logging objects and arrays you can now limit the depth with:
$firephp->setOption('maxObjectDepth',3);
$firephp->setOption('maxArrayDepth',3);
You can also limit the number of steps in traces with:
$firephp->setOption('maxTraceDepth',3);
By default file and line information is now sent for each log message.
You can disable this with:
$firephp->setOption('includeLineNumbers',false);
Let me know what you think!
trunk.
When logging objects in frameworks like ZF there can be many object
members that while important to the framework are of less interest when
debugging. If these members are logged they bloat the log message that
is sent to the client, they will slow down the client UI and make it
harder to inspect the members you actually want to see.
You can now exclude specific object members by class name and member
name with:
$firephp = Zend_Wildfire_Plugin_FirePhp::getInstance();
$firephp->setObjectFilter('Class_Name',array('Member1','Member2'));
When logging objects and arrays you can now limit the depth with:
$firephp->setOption('maxObjectDepth',3);
$firephp->setOption('maxArrayDepth',3);
You can also limit the number of steps in traces with:
$firephp->setOption('maxTraceDepth',3);
By default file and line information is now sent for each log message.
You can disable this with:
$firephp->setOption('includeLineNumbers',false);
Let me know what you think!
--
Christoph Dorn
<http://www.ChristophDorn.com/> http://www.ChristophDorn.com/
Christoph Dorn
<http://www.ChristophDorn.com/> http://www.ChristophDorn.com/