Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
As Drupal8 enables the use of different logging system by implementing the Drupal\Core\Logger\LoggerChannelFactoryInterface (e.g Monolog ), Metatag shouldn't depends on the abstraction (e.g Drupal\Core\Logger\LoggerChannelFactory).
Comment | File | Size | Author |
---|---|---|---|
#3 | use-2672892-3.patch | 1.25 KB | borisson_ |
Comments
Comment #2
DamienMcKennaComment #3
borisson_Comment #4
mr.baileysMakes total sense, reviewed the patch, applied the patch and tested by triggering a logged error.
Not sure if we want to bikeshed naming, but core seems to favour
$logger_factory
instead of$channelFactory
as name (example, see\Drupal\Core\Mail\MailManager
)Comment #6
DamienMcKennaCommitted. Thanks!
Comment #8
Dave ReidI think this should be changed to just use \Psr\Log\LoggerInterface instead of the logger channel factory, unless there's a specific need to have the factory instead of the logger itself.