class LogLevel

  1. 8.0.x lib/Drush/Log/LogLevel.php LogLevel
  2. 7.x lib/Drush/Log/LogLevel.php LogLevel
  3. master lib/Drush/Log/LogLevel.php LogLevel

Additional log levels that Drush uses for historical reasons. Standard log levels should be preferred.




  • class LogLevel extends \Psr\Log\LogLevel

Expanded class hierarchy of LogLevel


Contains filters are case sensitive


lib/Drush/Log/LogLevel.php, line 9

View source
class LogLevel extends \Psr\Log\LogLevel {
  // Things that happen early on.  Like 'notice'
  const BOOTSTRAP = 'bootstrap';
  const PREFLIGHT = 'preflight';

  // Notice that the user is cancelling an operation. Like 'warning'
  const CANCEL = 'cancel';

  // Various 'success' messages.  Like 'notice'
  const OK = 'ok';

  // Highly verbose messages that are not always interesting.
  // Displayed only when --debug and --verbose specified together.
  const DEBUG_NOTIFY = 'debugnotify';

  // Means the command was successful. Should appear at most once
  // per command (perhaps more if subcommands are executed, though).
  // Like 'notice'.
  const SUCCESS = 'success';

  // Batch processes. Like 'notice'
  const BATCH = 'batch';
75 files declare their use of LogLevel in commands/core/
An early implementation of Site Archive dump/restore. See in includes/
Drush backend API in commands/pm/version_control/
Drush pm directory copy backup extension
BaseBoot.php in lib/Drush/Boot/BaseBoot.php in includes/
Drush batch API.

... See full list