public function log(\Throwable $throwable)
    {
        $logData  = date('Y-m-d H:i:s');
        $logData .= $this->fieldsOf($throwable);
        $logData .= $this->fieldsOf($throwable->getPrevious());
        error_log(
                $logData . "\n",
                3,
                $this->logDir() . DIRECTORY_SEPARATOR . 'exceptions-' . date('Y-m-d') . '.log'
        );
    }
public function log(\Throwable $throwable)
    {
        $logData  = date('Y-m-d H:i:s');
        $logData .= $this->fieldsOf($throwable);
        $logData .= $this->fieldsOf($throwable->getPrevious());
        error_log(
                $logData . "\n",
                3,
                $this->logDir() . DIRECTORY_SEPARATOR . 'exceptions-' . date('Y-m-d') . '.log'
        );
    }
public function log ( \ Throwable $ throwable ) { $ logData = date ( 'Y-m-d H:i:s' ) ; $ logData .= $ this -> fieldsOf ( $ throwable ) ; $ logData .= $ this -> fieldsOf ( $ throwable -> getPrevious ( ) ) ; error_log ( $ logData . "\n" , 3 , $ this -> logDir ( ) . DIRECTORY_SEPARATOR . 'exceptions-' . date ( 'Y-m-d' ) . '.log' ) ; }
logs the exception into a logfile

@param  \Throwable  $throwable  exception to log
logs the exception into a logfile