CallbackFilterHandler is a handler for Monolog, that has vocation to replace the FilterHandler.
Why CallbackFilterHandler is better than standard FilterHandler ?
It may filter records to the wrapped handler, on each standard record elements including extra data and logging context.
FilterHandler can just filter records and only allow those of a given list of levels through to the wrapped handler.
CallbackFilterHandler takes advantage of new features in PHP 5.3.0 or greater.
CallbackFilterHandler is strictly tested. Checks code coverage and see by yourself.
CallbackFilterHandler is open source. It’s hosted, developed, and maintained on GitHub.