Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a createChild method to the logger #3388

Open
EmrysMyrddin opened this issue Jul 26, 2024 · 0 comments · May be fixed by #3459
Open

Add a createChild method to the logger #3388

EmrysMyrddin opened this issue Jul 26, 2024 · 0 comments · May be fixed by #3459

Comments

@EmrysMyrddin
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant