Skip to content

The server:log command does not show logs #32111

@maidmaid

Description

@maidmaid

Symfony version(s) affected: 4.2

Description
The logs are not shown while we launch server:log. The only way to show them is to add -vvv option.

How to reproduce

// config/packages/dev/monolog.yaml
monolog:
    handlers:
        server_log:
            type: server_log
            host: 0:9911

And run server:log.

Possible Solution

The ConsoleHandler checks the verbosity level. By default the normal verbosity maps to the warning level log. IMO, the --filter option should be the only one responsible of the level.

if ($this->handler->isHandling($record)) {

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions