restrict message logging based on additional config property