info('START'); throw new RuntimeException('An unexpected error occurs'); /** @noinspection PhpUnreachableStatementInspection */ $logger->info('END'); } catch (Throwable $exception) { $logger->exception(Logger::ERROR, $exception); }