{"record":{"id":"a7515f1fcb6c0704","repo":"phalcon/cphalcon","slug":"adapter-does-not-exist-for-this-logger-name","errorCode":null,"errorMessage":"Adapter does not exist for this logger: {name}","messagePattern":"Adapter does not exist for this logger: (.+?)","errorType":"exception","errorClass":"Phalcon\\Logger\\Exceptions\\AdapterNotFound","httpStatus":null,"severity":"error","filePath":"phalcon/Logger/AbstractLogger.zep","lineNumber":214,"sourceCode":"         */\n        for adapter in adapters {\n            if (true === isset(registered[adapter])) {\n                let this->excluded[adapter] = true;\n            }\n        }\n\n        return this;\n    }\n\n    /**\n     * Returns an adapter from the stack\n     *\n     * @throws AdapterNotFound\n     */\n    public function getAdapter(string name) -> <AdapterInterface>\n    {\n        if (true !== isset(this->adapters[name])) {\n            throw new AdapterNotFound(name);\n        }\n\n        return this->adapters[name];\n    }\n\n    /**\n     * Returns the adapter stack array\n     *\n     * @return AdapterInterface[]\n     */\n    public function getAdapters() -> array\n    {\n        return this->adapters;\n    }\n\n    /**\n     * Returns the log level\n     */","sourceCodeStart":196,"sourceCodeEnd":232,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Logger/AbstractLogger.zep#L196-L232","documentation":"Thrown by AbstractLogger::getAdapter when the requested name is not a key in the logger's adapter stack. Only adapters registered with the logger can be retrieved. Register the adapter or check getAdapters() for available names.","triggerScenarios":"Thrown at phalcon/Logger/AbstractLogger.zep:214 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register the adapter with addAdapter(name, adapter) before getAdapter()","Check the adapter name spelling against the names used at registration"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","contentChangedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}