Cake\Database\Connection::_newLogger PHP Method

_newLogger() protected method

Returns a new statement object that will log the activity for the passed original statement instance.
protected _newLogger ( Cake\Database\StatementInterface $statement ) : Cake\Database\Log\LoggingStatement
$statement Cake\Database\StatementInterface the instance to be decorated
return Cake\Database\Log\LoggingStatement
    protected function _newLogger(StatementInterface $statement)
    {
        $log = new LoggingStatement($statement, $this->driver());
        $log->logger($this->logger());
        return $log;
    }