{"record":{"id":"0b0393cd4572d0ad","repo":"Seldaek/monolog","slug":"php-console-library-not-found-see-https-github","errorCode":null,"errorMessage":"PHP Console library not found. See https://github.com/barbushin/php-console#installation","messagePattern":"PHP Console library not found\\. See https://github\\.com/barbushin/php-console#installation","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Handler/PHPConsoleHandler.php","lineNumber":128,"sourceCode":"        'dumperItemsCountLimit' => 100, // int Maximum dumped var same level array items or object properties number\n        'dumperItemSizeLimit' => 5000, // int Maximum length of any string or dumped array item\n        'dumperDumpSizeLimit' => 500000, // int Maximum approximate size of dumped vars result formatted in JSON\n        'detectDumpTraceAndSource' => false, // bool Autodetect and append trace data to debug\n        'dataStorage' => null, // \\PhpConsole\\Storage|null Fixes problem with custom $_SESSION handler (see https://github.com/barbushin/php-console#troubleshooting-with-_session-handler-overridden-in-some-frameworks)\n    ];\n\n    private Connector $connector;\n\n    /**\n     * @param  array<string, mixed> $options   See \\Monolog\\Handler\\PHPConsoleHandler::$options for more details\n     * @param  Connector|null       $connector Instance of \\PhpConsole\\Connector class (optional)\n     * @throws \\RuntimeException\n     * @phpstan-param InputOptions $options\n     */\n    public function __construct(array $options = [], ?Connector $connector = null, int|string|Level $level = Level::Debug, bool $bubble = true)\n    {\n        if (!class_exists('PhpConsole\\Connector')) {\n            throw new \\RuntimeException('PHP Console library not found. See https://github.com/barbushin/php-console#installation');\n        }\n        parent::__construct($level, $bubble);\n        $this->options = $this->initOptions($options);\n        $this->connector = $this->initConnector($connector);\n    }\n\n    /**\n     * @param  array<string, mixed> $options\n     * @return array<string, mixed>\n     *\n     * @phpstan-param InputOptions $options\n     * @phpstan-return Options\n     */\n    private function initOptions(array $options): array\n    {\n        $wrongOptions = array_diff(array_keys($options), array_keys($this->options));\n        if (\\count($wrongOptions) > 0) {\n            throw new \\RuntimeException('Unknown options: ' . implode(', ', $wrongOptions));","sourceCodeStart":110,"sourceCodeEnd":146,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Handler/PHPConsoleHandler.php#L110-L146","documentation":"Error \"PHP Console library not found. See https://github.com/barbushin/php-console#installation\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Handler/PHPConsoleHandler.php:128 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"}