getRegisteredAppContainer($appId); return $appContainer->get(LoggerInterface::class); } catch (ContainerExceptionInterface $e) { // Ignore and return the server logger below } } try { return Server::get(LoggerInterface::class); } catch (ContainerExceptionInterface $e) { return new NullLogger(); } }