Add test for config of multiple loggers, see #2968

(cherry picked from commit 14d857a593513d932b82ab2fd4e2a2dc78ef911c)