Fix MessageLogger config

Fix MessageLogger config to avoid printouts in duplicate.