Skip to content

Use named loggers and add a selector flag #3058

@jsoriano

Description

@jsoriano

Verbose logging can be selected now with -v and -vv, this selects the debug or trace log levels respectively. Both options can be too verbose when you are only interested on the logs of an specific subcomponent, but at the moment there is no way to do any other selection.

Add named loggers, so each component of elastic-package can have its own logs and these can be filtered with a flag.

So for example the following command shows only the trace level logs related to http and docker:

elastic-package stack up -d -vv --logger http,docker

The following would show the trace logs for test runners:

elastic-package test system -vv --logger testrunner

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions