function _drush_log_to_logger

master drush.inc _drush_log_to_logger($logger, $entry)

Related topics

2 calls to _drush_log_to_logger()
_drush_log in includes/drush.inc
Call the default logger, or the user's log callback, as appropriate.
_drush_print_log in includes/drush.inc

File

includes/drush.inc, line 1302
The drush API implementation and helpers.

Code

function _drush_log_to_logger($logger, $entry) {
  $context = $entry;
  $log_level = $entry['type'];
  $message = $entry['message'];
  unset($entry['type']);
  unset($entry['message']);

  $logger->log($log_level, $message, $context);
}