getContainer()->get(Psr\Log\LoggerInterface::class)); try { $app->run(); } catch (Error | Exception $e) { if (isset($_REQUEST)) { $app->getContainer()->get(Psr\Log\LoggerInterface::class)->debug(json_encode(compact('_REQUEST'))); } $app->getContainer()->get(Psr\Log\LoggerInterface::class)->error($e); throw $e; }