public function getLog() { if (!$this->log instanceof Logger) { $this->setLog(new Logger()); } return $this->log; }