yii\log\Dispatcher::getLogger PHP Method

getLogger() public method

If not set, [[\Yii::getLogger()]] will be used.
public getLogger ( ) : Logger
return Logger the logger.
    public function getLogger()
    {
        if ($this->_logger === null) {
            $this->setLogger(Yii::getLogger());
        }
        return $this->_logger;
    }