ZF2-454: Fatal error: Call to a member function getEnabled() on a non-object in <path>\vendor\ZF2\library\Zend\Log\Writer\FirePhp.php on line 53
Description
This is my code.
$writer = new \Zend\Log\Writer\FirePhp();
$logger = new \Zend\Log\Logger();
$logger->addWriter($writer);
$logger->log(1, 'test');
Comments
Posted by Ludwig Ruderstaller (rufinus) on 2012-09-21T22:37:46.000+0000
you have to add the firephpcore class from pear. you can do this by extending the composer.json and add it as a requirement.
this should really be noted in the reference guide.
Posted by Ludwig Ruderstaller (rufinus) on 2012-09-21T23:10:09.000+0000
see https://github.com/zendframework/zf2/pull/2403 https://github.com/zendframework/…
Posted by Ralph Schindler (ralph) on 2012-10-08T20:16:35.000+0000
This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2520