logger.factory

Same name and namespace in other branches
  1. 9 core/core.services.yml \logger.factory
  2. 8.9.x core/core.services.yml \logger.factory
  3. 11.x core/core.services.yml \logger.factory

Class

Drupal\Core\Logger\LoggerChannelFactory

Tags

  • service_collector
7 string references to logger.factory
CronTest::setUp in core/tests/Drupal/Tests/Core/CronTest.php
EntityReferenceEntityFormatter::create in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php
Creates an instance of the plugin.
LoggerChannelTrait::getLogger in core/lib/Drupal/Core/Logger/LoggerChannelTrait.php
Gets the logger for a specific channel.
StorageCopyTraitTest::testWithInvalidConfiguration in core/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php
Tests replaceStorageContents() with config with an invalid configuration.
ViewsLoggerTestTrait::setUpMockLoggerWithMissingEntity in core/modules/views/tests/src/Traits/ViewsLoggerTestTrait.php
Sets up a mock logger for when views can't load an entity.

... See full list

File

core/core.services.yml

View source
  1. class: Drupal\Core\Logger\LoggerChannelFactory
  2. arguments:
  3. - '@request_stack'
  4. - '@current_user'
  5. tags:
  6. - { name: service_collector, tag: logger, call: addLogger }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.