-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
component-base/logs: refactor registry #105539
Conversation
Moving the registry into its own package will avoid dependency cycles in future PRs. Creating loggers through a factory instead of storing pre-created instances will make it possible to create the loggers differently depending on configuration parameters. The factory can also be used to provide additional meta data before creating instances.
/triage accepted |
/lgtm |
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, pohly, serathius The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Moving the registry into its own package will avoid dependency cycles in future
PRs.
Creating loggers through a factory instead of storing pre-created instances
will make it possible to create the loggers differently depending on
configuration parameters.
The factory can also be used to provide additional meta data before creating
instances.
Special notes for your reviewer:
#104873 will be based on this. It'll be easier to review if we merge this one here first.
Does this PR introduce a user-facing change?