You are here

public function LoggerChannel::setLoggers in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Logger/LoggerChannel.php \Drupal\service_container\Logger\LoggerChannel::setLoggers()

Sets the loggers for this channel.

Parameters

array $loggers: An array of arrays of \Psr\Log\LoggerInterface keyed by priority.

Overrides LoggerChannelInterface::setLoggers

File

src/Logger/LoggerChannel.php, line 73
Contains \Drupal\service_container\Logger\LoggerChannel.

Class

LoggerChannel
Defines a logger channel that most implementations will use.

Namespace

Drupal\service_container\Logger

Code

public function setLoggers(array $loggers) {
  $this->loggers = $loggers;
}