Fix issues with logger instantiation.