Skip to content

Class "Consolidation\Log\ConsoleLogLevel" not found #5213

@mglaman

Description

@mglaman

Describe the bug
Drupal 10 + Drush 11 crashes due to

Error: Class "Consolidation\Log\ConsoleLogLevel" not found in Drush\Log\DrushLoggerManager->success()

See https://drupal.stackexchange.com/questions/311778/uncaught-error-class-consolidation-log-loglevel-not-found-in-app-vendor-con

Caused by consolidation/log@12d16fd

To Reproduce

composer create-project drupal/recommended-project:^10@alpha foobar
cd foobar
composer require drush/drush
php vendor/bin/drush si
omposer why consolidation/log
consolidation/robo  4.0.0-alpha1  requires  consolidation/log (^2.0.2 || ^3)

Expected behavior
It work.

Actual behavior
It go boom.

Workaround
Manually fix consolidation/log

System Configuration

Q A
Drush version? 11.1.1
Drupal version? 10.0.0-alpha7
PHP version 8.1.8
OS? macOS
consolidation/log 3.0.0
psr/log 3.0.0

Additional information
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions