Skip to content

Commit

Permalink
Fix #5213. Class "Consolidation\Log\ConsoleLogLevel" not found (#5237)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Sep 19, 2022
1 parent dc26ddf commit 643b355
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Log/DrushLoggerManager.php
Expand Up @@ -9,6 +9,6 @@ class DrushLoggerManager extends LoggerManager implements SuccessInterface
{
public function success(string $message, array $context = array())
{
$this->log(ConsoleLogLevel::SUCCESS, $message, $context);
$this->log(self::SUCCESS, $message, $context);
}
}
6 changes: 6 additions & 0 deletions src/Log/SuccessInterface.php
Expand Up @@ -4,6 +4,12 @@

interface SuccessInterface
{
/**
* Command successfully completed some operation.
* Displayed at VERBOSITY_NORMAL.
*/
public const SUCCESS = 'success';

/**
* Log a 'success' message.
*/
Expand Down

0 comments on commit 643b355

Please sign in to comment.