public function MonologLoggerChannelFactory::addLogger in Monolog 2.x
Same name and namespace in other branches
- 8 src/Logger/MonologLoggerChannelFactory.php \Drupal\monolog\Logger\MonologLoggerChannelFactory::addLogger()
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
\Symfony\Component\HttpKernel\DependencyInjection\LoggerPass
File
- src/
Logger/ MonologLoggerChannelFactory.php, line 53
Class
- MonologLoggerChannelFactory
- Defines a factory for logging channels.
Namespace
Drupal\monolog\LoggerCode
public function addLogger(LoggerInterface $logger, $priority = 0) {
// No-op, we have handlers which are services and configured in the
// services.yml file.
// @see https://www.drupal.org/node/2411683
}