LoggerChannel::__construct

public LoggerChannel::__construct($channel) Constructs a LoggerChannel object Parameters string $channel: The channel name for this instance. File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 87 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code public function __construct($channel) { $this->channel = $channel; }

LoggerChannel::sortLoggers

protected LoggerChannel::sortLoggers() Sorts loggers according to priority. Return value array An array of sorted loggers by priority. File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 176 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code protected function sortLoggers() { $sorted = array(); krsort($this->loggers); foreach ($this->loggers as $loggers) { $sorted = array_merge($sorted, $loggers);

LoggerChannel::setRequestStack

public LoggerChannel::setRequestStack(RequestStack $requestStack = NULL) Sets the request stack. Parameters \Symfony\Component\HttpFoundation\RequestStack|null $requestStack: The current request object. Overrides LoggerChannelInterface::setRequestStack File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 145 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code public function setRequestStack(RequestStack $requestStack =

LoggerChannel::setLoggers

public LoggerChannel::setLoggers(array $loggers) Sets the loggers for this channel. Parameters array $loggers: An array of arrays of \Psr\Log\LoggerInterface keyed by priority. Overrides LoggerChannelInterface::setLoggers File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 159 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code public function setLoggers(array $loggers) { $this->loggers = $loggers; }

LoggerChannel::setCurrentUser

public LoggerChannel::setCurrentUser(AccountInterface $current_user = NULL) Sets the current user. Parameters \Drupal\Core\Session\AccountInterface|null $current_user: The current user object. Overrides LoggerChannelInterface::setCurrentUser File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 152 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code public function setCurrentUser(AccountInterface $current_user = NULL) {

LoggerChannel::MAX_CALL_DEPTH

Maximum call depth to self::log() for a single log message. It's very easy for logging channel code to call out to other library code that will create log messages. In that case, we will recurse back in to LoggerChannel::log() multiple times while processing a single originating message. To prevent infinite recursion, we track the call depth and bail out at LoggerChannel::MAX_CALL_DEPTH iterations. File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 28 Class LoggerChannel Defines a lo

LoggerChannel::log

public LoggerChannel::log($level, $message, array $context = array()) Logs with an arbitrary level. Parameters mixed $level: string $message: array $context: Return value null Overrides LoggerTrait::log File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 94 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code public function log($level, $message, array $context = array()) { if ($this->callDepth == self::MAX_CALL_

LoggerChannel::addLogger

public LoggerChannel::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. Overrides LoggerChannelInterface::addLogger File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 166 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code public function addLogger(LoggerInterface $logger, $prior

LoggerChannel::$requestStack

The request stack object. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 72 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code protected $requestStack;

LoggerChannel::$loggers

An array of arrays of \Psr\Log\LoggerInterface keyed by priority. Type: array File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 65 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code protected $loggers = array();