public function logger($logger = null)
    {
        if ($logger) {
            $this->_logger = $logger;
        }

        if ($this->_logger) {
            return $this->_logger;
        }

        $this->_logger = new QueryLogger();
        return $this->_logger;
    }
public function logger($logger = null)
    {
        if ($logger) {
            $this->_logger = $logger;
        }

        if ($this->_logger) {
            return $this->_logger;
        }

        $this->_logger = new QueryLogger();
        return $this->_logger;
    }
public function logger ( $ logger = null ) { if ( $ logger ) { $ this -> _logger = $ logger ; } if ( $ this -> _logger ) { return $ this -> _logger ; } $ this -> _logger = new QueryLogger ( ) ; return $ this -> _logger ; }
Sets the logger object instance. When called with no arguments
it returns the currently setup logger instance.

@param object $logger logger object instance
@return object logger instance
Sets the logger object instance . When called with no arguments it returns the currently setup logger instance .