ensure that the logger is initialized with correct args before using it (fix #2308)