Refactor the fault logger.