We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using \Phalcon\Logger\LoggerFactory to load the Logger, the key name of the adapter is lost.
Document example:
<?php use Phalcon\Logger\AdapterFactory; use Phalcon\Logger\LoggerFactory; $config = [ "name" => "prod-logger", "adapters" => [ "main" => [ "adapter" => "stream", "name" => "/storage/logs/main.log", "options" => [] ], "admin" => [ "adapter" => "stream", "name" => "/storage/logs/admin.log", "options" => [] ], ], ]; $adapterFactory = new AdapterFactory(); $loggerFactory = new LoggerFactory($adapterFactory); $logger = $loggerFactory->load($config); $logger->getAdapter('main'); // Throw exception: Fatal error: Uncaught Phalcon\Logger\Exception: Adapter does not exist for this logger in phalcon/Logger.zep:208 $logger->getAdapter(0); // Return the main adapter object.
Phalcon 4.1.0
The text was updated successfully, but these errors were encountered:
@hayeslam Thank you for reporting this.
Resolved in #15835
Sorry, something went wrong.
niden
No branches or pull requests
When using \Phalcon\Logger\LoggerFactory to load the Logger, the key name of the adapter is lost.
Document example:
Phalcon 4.1.0
The text was updated successfully, but these errors were encountered: