{"record":{"id":"59318e470e8c8caf","repo":"Seldaek/monolog","slug":"requested-s-logger-instance-is-not-in-the-regis","errorCode":null,"errorMessage":"Requested \"%s\" logger instance is not in the registry","messagePattern":"Requested \"(.+?)\" logger instance is not in the registry","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Registry.php","lineNumber":115,"sourceCode":"\n    /**\n     * Clears the registry\n     */\n    public static function clear(): void\n    {\n        self::$loggers = [];\n    }\n\n    /**\n     * Gets Logger instance from the registry\n     *\n     * @param  string                    $name Name of the requested Logger instance\n     * @throws \\InvalidArgumentException If named Logger instance is not in the registry\n     */\n    public static function getInstance(string $name): Logger\n    {\n        if (!isset(self::$loggers[$name])) {\n            throw new InvalidArgumentException(sprintf('Requested \"%s\" logger instance is not in the registry', $name));\n        }\n\n        return self::$loggers[$name];\n    }\n\n    /**\n     * Gets Logger instance from the registry via static method call\n     *\n     * @param  string                    $name      Name of the requested Logger instance\n     * @param  mixed[]                   $arguments Arguments passed to static method call\n     * @throws \\InvalidArgumentException If named Logger instance is not in the registry\n     * @return Logger                    Requested instance of Logger\n     */\n    public static function __callStatic(string $name, array $arguments): Logger\n    {\n        return self::getInstance($name);\n    }\n}","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Registry.php#L97-L133","documentation":"Error \"Requested \"%s\" logger instance is not in the registry\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Registry.php:115 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"57eb1028342134e701e77c617565d51b6e5a2a53","analyzedAt":"2026-08-17T02:36:30.259Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}