logger.factory
Same name and namespace in other branches
- 11.x core/core.services.yml \logger.factory
- 10 core/core.services.yml \logger.factory
- 9 core/core.services.yml \logger.factory
- 8.9.x core/core.services.yml \logger.factory
Class
Drupal\Core\Logger\LoggerChannelFactoryTags
- service_collector
13 string references to logger.factory
- CronTest::setUp in core/
tests/ Drupal/ Tests/ Core/ CronTest.php - FieldEntityTest::testGetEntityNullEntityOptionalRelationship in core/
modules/ views/ tests/ src/ Kernel/ Entity/ FieldEntityTest.php - Tests the getEntity method returning NULL for an optional relationship.
- LanguageNegotiatorPluginTest::testLanguageNegotiatorNoPlugin in core/
modules/ language/ tests/ src/ Kernel/ LanguageNegotiatorPluginTest.php - Tests for PluginNotFoundException.
- LoggerChannelTrait::getLogger in core/
lib/ Drupal/ Core/ Logger/ LoggerChannelTrait.php - Gets the logger for a specific channel.
- OEmbedResourceConstraintValidator::create in core/
modules/ media/ src/ Plugin/ Validation/ Constraint/ OEmbedResourceConstraintValidator.php - Instantiates a new instance of this class.
File
-
core/
core.services.yml
View source
- class: Drupal\Core\Logger\LoggerChannelFactory
- arguments:
- - '@request_stack'
- - '@current_user'
- tags:
- - { 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.