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); } return $sorted; }
Please login to continue.