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