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
1 2 3 4 5 6 7 8 9 | protected function sortLoggers() { $sorted = array (); krsort( $this ->loggers); foreach ( $this ->loggers as $loggers ) { $sorted = array_merge ( $sorted , $loggers ); } return $sorted ; } |
Please login to continue.