protected function _newLogger(StatementInterface $statement)
    {
        $log = new LoggingStatement($statement, $this->_driver);
        $log->setLogger($this->getLogger());

        return $log;
    }
protected function _newLogger(StatementInterface $statement)
    {
        $log = new LoggingStatement($statement, $this->_driver);
        $log->setLogger($this->getLogger());

        return $log;
    }
protected function _newLogger ( StatementInterface $ statement ) { $ log = new LoggingStatement ( $ statement , $ this -> _driver ) ; $ log -> setLogger ( $ this -> getLogger ( ) ) ; return $ log ; }
Returns a new statement object that will log the activity
for the passed original statement instance.

@param \Cake\Database\StatementInterface $statement the instance to be decorated
@return \Cake\Database\Log\LoggingStatement
Returns a new statement object that will log the activity for the passed original statement instance .