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;
    }
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;
    }
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 ; }
Cron log method

@param \Extlib\Cron\Adapter\Job\JobInterface $job
@param \Exception $exc
@return \Extlib\Cron
Cron log method