Handle the case when logger is used before it is configured.