Do not use assertion checks in the logger.