- Issue created by @cp19112000
I'm using Drupal 9.5.11
After declaring channel logger in custom service I got the error $loggerFactory must be of type Drupal\Core\Logger\LoggerChannelFactory, Drupal\monolog\Logger\MonologLoggerChannelFactory given
Use '@logger.factory' as the argument or use parent: logger.channel_base
logger.channel.my_channel:
class: 'Drupal\Core\Logger\LoggerChannel'
arguments: ['my_channel']
Needs review
2.2
Code