Propagate logger to private function for easier debugging

applyExcludeFilter has an extra PluginLogger argument for easier debugging.
If no logger is available, a NullLogger is passed.