original_string: protected function _newLogger(StatementInterface $statement)
      {
          $log = new LoggingStatement($statement, $this->_driver);
          $log->setLogger($this->getLogger());
  
          return $log;
      }
code: protected function _newLogger(StatementInterface $statement)
      {
          $log = new LoggingStatement($statement, $this->_driver);
          $log->setLogger($this->getLogger());
  
          return $log;
      }
code_tokens: protected function _newLogger ( StatementInterface $ statement ) { $ log = new LoggingStatement ( $ statement , $ this -> _driver ) ; $ log -> setLogger ( $ this -> getLogger ( ) ) ; return $ log ; }
docstring: 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
docstring_tokens: Returns a new statement object that will log the activity for the passed original statement instance .