This handler what is not yet part of standard Monolog distribution, is available on Packagist bartlett/monolog-callbackfilterhandler and as such installable via Composer.
$ php composer.phar require bartlett/monolog-callbackfilterhandler