public function log($query, array $bindings = null, $time = null)
    {
        ++$this->queryNumber;

        try {
            $sqlQuery = $this->query->get($this->queryNumber, $query, $bindings, $time);
            $this->writer->save($sqlQuery);
        } catch (Exception $e) {
            $this->app['log']->notice("Cannot log query nr {$this->queryNumber}. Exception:" . PHP_EOL . $e);
        }
    }
public function log($query, array $bindings = null, $time = null)
    {
        ++$this->queryNumber;

        try {
            $sqlQuery = $this->query->get($this->queryNumber, $query, $bindings, $time);
            $this->writer->save($sqlQuery);
        } catch (Exception $e) {
            $this->app['log']->notice("Cannot log query nr {$this->queryNumber}. Exception:" . PHP_EOL . $e);
        }
    }
public function log ( $ query , array $ bindings = null , $ time = null ) { ++ $ this -> queryNumber ; try { $ sqlQuery = $ this -> query -> get ( $ this -> queryNumber , $ query , $ bindings , $ time ) ; $ this -> writer -> save ( $ sqlQuery ) ; } catch ( Exception $ e ) { $ this -> app [ 'log' ] -> notice ( "Cannot log query nr {$this->queryNumber}. Exception:" . PHP_EOL . $ e ) ; } }
Log query.

@param string|\Illuminate\Database\Events\QueryExecuted $query
@param array|null $bindings
@param float|null $time
Log query .