Skip to content

Add a createChild method to the logger #3388

Open
@EmrysMyrddin

Description

@EmrysMyrddin

Is your feature request related to a problem? Please describe.

To improve logs readability, the Yoga Logger instance should have a createChild method allowing to make sub loggers, with a prefix for example. Each plugins could use this to better identify where does a log come from and enable/disable logs on a plugin bases.

Describe the solution you'd like

Add a creatChild method to the YogaLogger interface.

Describe alternatives you've considered

Today, each plugins is doing its own implementation of this "sub logger" feature, which prevent new features such as fine grained control of the logging level.

Additional context

This already exists in the Mesh Logger. But this feature should be moved to Yoga instead, it's not specific to Mesh.

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