public function logErrorException(\Exception $e) { if ($this->getServerContext()->hasLogger(LoggerUtils::SYSTEM)) { $this->getServerContext()->getLogger(LoggerUtils::SYSTEM)->error($e->__toString()); } }