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

Allow multiple implementations of logging.ContextFilter #54

Open
benhalstead opened this issue Apr 28, 2020 · 0 comments
Open

Allow multiple implementations of logging.ContextFilter #54

benhalstead opened this issue Apr 28, 2020 · 0 comments
Assignees
Milestone

Comments

@benhalstead
Copy link
Member

Allow multiple components to implement logging.ContextFilter. These source components will be wrapped into a single implementation logging.MergedContextFilter which reads from the source components.

Control over the which source's version of a key/value is used in the merged view can be controlled by implementing the logging.PrioritisedContextFilter interface to return an int64 'score' where a higher number is a higher priority. A context filter not implemented that interface is assumed to have a priority of zero.

@benhalstead benhalstead self-assigned this Apr 28, 2020
@benhalstead benhalstead added this to the v2.2.0 milestone Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant