protected function LoggerChannel::sortLoggers in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Logger/LoggerChannel.php \Drupal\Core\Logger\LoggerChannel::sortLoggers()
Sorts loggers according to priority.
Return value
array An array of sorted loggers by priority.
1 call to LoggerChannel::sortLoggers()
- LoggerChannel::log in core/
lib/ Drupal/ Core/ Logger/ LoggerChannel.php - Logs with an arbitrary level.
File
- core/
lib/ Drupal/ Core/ Logger/ LoggerChannel.php, line 146 - Contains \Drupal\Core\Logger\LoggerChannel.
Class
- LoggerChannel
- Defines a logger channel that most implementations will use.
Namespace
Drupal\Core\LoggerCode
protected function sortLoggers() {
$sorted = array();
krsort($this->loggers);
foreach ($this->loggers as $loggers) {
$sorted = array_merge($sorted, $loggers);
}
return $sorted;
}