Commit bc8ffe31 authored by catch's avatar catch

Issue #2341701 by ParisLiakos: Provide an abstract logger.channel declaration.

parent 669ba7bb
......@@ -203,30 +203,25 @@ services:
parent: container.trait
tags:
- { name: service_collector, tag: logger, call: addLogger }
logger.channel.default:
logger.channel_base:
abstract: true
class: Drupal\Core\Logger\LoggerChannel
factory_method: get
factory_service: logger.factory
logger.channel.default:
parent: logger.channel_base
arguments: ['system']
logger.channel.php:
class: Drupal\Core\Logger\LoggerChannel
factory_method: get
factory_service: logger.factory
parent: logger.channel_base
arguments: ['php']
logger.channel.image:
class: Drupal\Core\Logger\LoggerChannel
factory_method: get
factory_service: logger.factory
parent: logger.channel_base
arguments: ['image']
logger.channel.cron:
class: Drupal\Core\Logger\LoggerChannel
factory_method: get
factory_service: logger.factory
parent: logger.channel_base
arguments: ['cron']
logger.channel.form:
class: Drupal\Core\Logger\LoggerChannel
factory_method: get
factory_service: logger.factory
parent: logger.channel_base
arguments: ['form']
logger.log_message_parser:
class: Drupal\Core\Logger\LogMessageParser
......
......@@ -12,7 +12,5 @@ services:
class: Drupal\aggregator\ItemsImporter
arguments: ['@config.factory', '@plugin.manager.aggregator.fetcher', '@plugin.manager.aggregator.parser', '@plugin.manager.aggregator.processor', '@logger.channel.aggregator']
logger.channel.aggregator:
class: Drupal\Core\Logger\LoggerChannel
factory_method: get
factory_service: logger.factory
parent: logger.channel_base
arguments: ['aggregator']
......@@ -28,7 +28,5 @@ services:
tags:
- { name: 'event_subscriber' }
logger.channel.rest:
class: Drupal\Core\Logger\LoggerChannel
factory_method: get
factory_service: logger.factory
parent: logger.channel_base
arguments: ['rest']
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment