HI All,
How can I display arrays or objects in the Firebug console using the Firephp logger? I have this in my services.php file :
use Phalcon\Logger\Adapter\Firephp as Firephp;
/**
* Firebug Logging
*/
$di->setShared('logger', function() use($config){
if($config->debug){
$logger = new Firephp("");
} else {
$logger = new Debug\Dummy();
}
return $logger;
});
And then I call the debugging functions like this :
$this->logger->log("tim");
It works fine for normal strings but I cant see array content.
//shows fine
$this->logger->log("tim");
//does not show
$arr = ["name" => "Tim", "age" => 30];
$this->logger->log($arr);
Please help.
Thanks!