ensure log dispatcher gets registered with logger in all cases

fixes #2894