3 namespace Drupal\Core\Logger;
5 use Psr\Log\LoggerInterface;
8 * Logger channel factory interface.
10 interface LoggerChannelFactoryInterface {
13 * Retrieves the registered logger for the requested channel.
15 * @return \Drupal\Core\Logger\LoggerChannelInterface
16 * The registered logger for this channel.
18 public function get($channel);
21 * Adds a logger to all the channels.
23 * @param \Psr\Log\LoggerInterface $logger
24 * The PSR-3 logger to add.
25 * @param int $priority
26 * The priority of the logger being added.
28 * @see \Drupal\Core\DependencyInjection\Compiler\RegisterLoggersPass
30 public function addLogger(LoggerInterface $logger, $priority = 0);