Skip to content

Align the output styling between io() and logger() logs #6480

@DieterHolvoet

Description

@DieterHolvoet

Describe the bug
When logging through $this->io()->success() and $this->logger->success(), the output formatting is completely different. An example, the first one being the logger and the second one being io.

Image Image

In addition to styling being different, it looks like hyperlinks aren't supported when logging through io().

To Reproduce
Run drush field:create, but change the function being used for logging in FieldCreateCommand::logResult()

Expected behavior
Have the same styling across functions, because both are used throughout Drush commands. Personally, I'm more a fan of the first styling, it's a lot cleaner and takes less space in the terminal.

Actual behavior
The styling is different

Workaround
/

System Configuration

Q A
Drush version? 14.x
Drupal version? 11.x
PHP version 8.x
OS? Mac

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