Add a root logging handler manually instead of relying on basicConfig.