LoggerChannelInterface::addLogger

public LoggerChannelInterface::addLogger(LoggerInterface $logger, $priority = 0) Adds a logger. Parameters \Psr\Log\LoggerInterface $logger: The PSR-3 logger to add. int $priority: The priority of the logger being added. File core/lib/Drupal/Core/Logger/LoggerChannelInterface.php, line 69 Class LoggerChannelInterface Logger channel interface. Namespace Drupal\Core\Logger Code public function addLogger(LoggerInterface $logger, $priority = 0);

LoggerChannelInterface

Logger channel interface. This interface defines the full behavior of the central Drupal logger facility. However, when writing code that does logging, use the generic \Psr\Log\LoggerInterface for typehinting instead (you shouldn't need the methods here). To add a new logger to the system, implement \Psr\Log\LoggerInterface and add a service for that class to a services.yml file tagged with the 'logger' tag. The default logger channel implementation will call the log() method of every logger se

LoggerChannelFactoryInterface::get

public LoggerChannelFactoryInterface::get($channel) Retrieves the registered logger for the requested channel. Return value \Drupal\Core\Logger\LoggerChannelInterface The registered logger for this channel. File core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php, line 18 Class LoggerChannelFactoryInterface Logger channel factory interface. Namespace Drupal\Core\Logger Code public function get($channel);

LoggerChannelFactoryInterface::addLogger

public LoggerChannelFactoryInterface::addLogger(LoggerInterface $logger, $priority = 0) Adds a logger to all the channels. Parameters \Psr\Log\LoggerInterface $logger: The PSR-3 logger to add. int $priority: The priority of the logger being added. See also \Drupal\Core\DependencyInjection\Compiler\RegisterLoggersPass File core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php, line 30 Class LoggerChannelFactoryInterface Logger channel factory interface. Namespace Drupal\Core\Lo

LoggerChannelFactoryInterface

Logger channel factory interface. Hierarchy interface \Drupal\Core\Logger\LoggerChannelFactoryInterface File core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php, line 10 Namespace Drupal\Core\Logger Members Name Modifiers Type Description LoggerChannelFactoryInterface::addLogger public function Adds a logger to all the channels. LoggerChannelFactoryInterface::get public function Retrieves the registered logger for the requested channel.

LoggerChannelFactory::get

public LoggerChannelFactory::get($channel) Retrieves the registered logger for the requested channel. Return value \Drupal\Core\Logger\LoggerChannelInterface The registered logger for this channel. Overrides LoggerChannelFactoryInterface::get File core/lib/Drupal/Core/Logger/LoggerChannelFactory.php, line 32 Class LoggerChannelFactory Defines a factory for logging channels. Namespace Drupal\Core\Logger Code public function get($channel) { if (!isset($this->channels[$channel])) {

LoggerChannelFactory::addLogger

public LoggerChannelFactory::addLogger(LoggerInterface $logger, $priority = 0) Adds a logger to all the channels. Parameters \Psr\Log\LoggerInterface $logger: The PSR-3 logger to add. int $priority: The priority of the logger being added. Overrides LoggerChannelFactoryInterface::addLogger See also \Drupal\Core\DependencyInjection\Compiler\RegisterLoggersPass File core/lib/Drupal/Core/Logger/LoggerChannelFactory.php, line 55 Class LoggerChannelFactory Defines a factory for logging channel

LoggerChannelFactory::$loggers

An array of arrays of \Psr\Log\LoggerInterface keyed by priority. Type: array File core/lib/Drupal/Core/Logger/LoggerChannelFactory.php, line 27 Class LoggerChannelFactory Defines a factory for logging channels. Namespace Drupal\Core\Logger Code protected $loggers = array();

LoggerChannelFactory::$channels

Array of all instantiated logger channels keyed by channel name. Type: \Drupal\Core\Logger\LoggerChannelInterface[] File core/lib/Drupal/Core/Logger/LoggerChannelFactory.php, line 20 Class LoggerChannelFactory Defines a factory for logging channels. Namespace Drupal\Core\Logger Code protected $channels = array();

LoggerChannelFactory

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 ContainerAwa