Propagate logger to applyExcludeFilter. Use NullLogger if no logger is available.