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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tigitz created an issue. See original summary.

DamienMcKenna’s picture

Category: Bug report » Feature request
borisson_’s picture

Status: Active » Needs review
FileSize
1.25 KB
mr.baileys’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

Makes 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)

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Dave Reid’s picture

I 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.