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);
        }
    }