phalcon/cphalcon · error · Phalcon\Logger\Exceptions\AdapterNotFound
Adapter does not exist for this logger
Error message
Adapter does not exist for this logger: {name} What it means
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.
Solutions
- Register the adapter with addAdapter(name, adapter) before getAdapter()
- Check the adapter name spelling against the names used at registration
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at phalcon/Logger/AbstractLogger.zep:214 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21).
Data as JSON: /api/errors/a7515f1fcb6c0704.
Report an issue: GitHub.
Appendix: source
Thrown at phalcon/Logger/AbstractLogger.zep:214
*/
for adapter in adapters {
if (true === isset(registered[adapter])) {
let this->excluded[adapter] = true;
}
}
return this;
}
/**
* Returns an adapter from the stack
*
* @throws AdapterNotFound
*/
public function getAdapter(string name) -> <AdapterInterface>
{
if (true !== isset(this->adapters[name])) {
throw new AdapterNotFound(name);
}
return this->adapters[name];
}
/**
* Returns the adapter stack array
*
* @return AdapterInterface[]
*/
public function getAdapters() -> array
{
return this->adapters;
}
/**
* Returns the log level
*/View on GitHub (pinned to b7419de9cd)