Defines a factory for logging channels.
Hierarchy
- class \Drupal\Core\Logger\LoggerChannelFactory implements LoggerChannelFactoryInterface, ContainerAwareInterface uses ContainerAwareTrait
File
- core/lib/Drupal/Core/Logger/LoggerChannelFactory.php, line 12
Namespace
Drupal\Core\Logger
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ContainerAwareTrait::$container | protected | property | |
ContainerAwareTrait::setContainer | public | function | Sets the container. Overrides ContainerAwareInterface::setContainer |
LoggerChannelFactory::$channels | protected | property | Array of all instantiated logger channels keyed by channel name. |
LoggerChannelFactory::$loggers | protected | property | An array of arrays of \Psr\Log\LoggerInterface keyed by priority. |
LoggerChannelFactory::addLogger | public | function | Adds a logger to all the channels. Overrides LoggerChannelFactoryInterface::addLogger |
LoggerChannelFactory::get | public | function | Retrieves the registered logger for the requested channel. Overrides LoggerChannelFactoryInterface::get |
Please login to continue.