public function logger($instance = null)
    {
        deprecationWarning(
            'LoggingStatement::logger() is deprecated. ' .
            'Use LoggingStatement::setLogger()/getLogger() instead.'
        );
        if ($instance === null) {
            return $this->getLogger();
        }

        return $this->_logger = $instance;
    }