Unofficial Zend Framework 2 Certification Study guide errata page

My certification preparation is based on the ZF2 certification study guide. I have run into some issues in the guide. Until I know where to address these, I'll just make a list here.

These issues are based on my findings, feel free to correct me if I am wrong, just drop me line.


Zend\Log\Logger vs Monolog\Logger

Monolog is my logger of choise, but as far as I can tell, the Zend\Log component is just as good. I would have loved to have an interchangable situation, but that is not going to happen anytime soon.

This is an example of the Zend\Log:

        $logger = new \Zend\Log\Logger;
        $writer = new \Zend\Log\Writer\Stream('/home/robert/example.log');
        $logger->warn($'A warning message');
        $logger->log($logger::WARN, 'Another warning message');

This is an example of the Monolog:


Subscribe to RSS - zf2