public function getLogger() { if ($this->_logger === null) { $this->setLogger(Yii::getLogger()); } return $this->_logger; }