Get exclude rules and logging working properly with flat contexts introduced in 2.0.0