function _drush_create_default_logger

8.0.x drush.inc _drush_create_default_logger()
7.x drush.inc _drush_create_default_logger()
master drush.inc _drush_create_default_logger()

Future: add some sort of dependency injection to Drush.

Related topics

1 call to _drush_create_default_logger()
drush_preflight_prepare in includes/preflight.inc
Prepare Drush for preflight.

File

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

Code

function _drush_create_default_logger() {
  $drush_logger = new Logger();
  drush_set_context('DRUSH_LOG_CALLBACK', $drush_logger);
}