Small improvement to logger.