Added format class for log.