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);
  }
  return $sorted;
}
doc_Drupal
2016-10-29 09:25:00
Comments
Leave a Comment

Please login to continue.