public function log(JobInterface $job ,\Exception $exc)
    {
        if (HistoryInterface::STATUS_WARNING === $exc->getCode()) {
            $this->getAdapter()->history(HistoryInterface::STATUS_WARNING, $job, $exc->getMessage());
        } else {
            $this->getAdapter()->history(HistoryInterface::STATUS_ERROR, $job, $exc->getMessage());
        }
        
        return $this;
    }