zendframework/zf2-documentation — pull request #520 by bickerstoff (2012-11-28 16:42:17+00:00)
Title: Update docs/languages/en/modules/zend.authentication.adapter.ldap.rst

I believe that addFilter is part of the $writer not the $logger. With the example, I get the following error:

Fatal error: Call to undefined method Zend\Log\Logger::addFilter()

Also, it seems the parameters have been reversed for $logger->log() with priority now first. With the example, I get the following error:

Zend\Log\Exception\InvalidArgumentException
$priority must be an integer > 0 and < 8; received 'Ldap: message'