function DrupalConsoleLogger::verbosityLevelMap

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Command/DrupalConsoleLogger.php \Drupal\Core\Command\DrupalConsoleLogger::verbosityLevelMap()

A custom map where notices are printed by default.

File

core/lib/Drupal/Core/Command/DrupalConsoleLogger.php, line 64

Class

DrupalConsoleLogger
Logs to the console. A logger is set during DrupalApplication->bootstrap().

Namespace

Drupal\Core\Command

Code

public static function verbosityLevelMap() : array {
  return [
    LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,
    LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,
    LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL,
    LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,
    LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,
    LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL,
    LogLevel::INFO => OutputInterface::VERBOSITY_VERY_VERBOSE,
    LogLevel::DEBUG => OutputInterface::VERBOSITY_DEBUG,
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.