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

Added support for extra attributes for logging.LogRecord #22

Merged
merged 8 commits into from
Oct 19, 2017

Conversation

steven-lee-qadium
Copy link
Contributor

@steven-lee-qadium steven-lee-qadium commented Oct 18, 2017

This allows access to request and/or response objects within each LogRecord by default, as well as allowing for easy inheritance configuration with the extra dict construction pulled out into its own method.

Note allows log filters to be able to print out information specific to individual requests, such as user.

@tclancy
Copy link
Collaborator

tclancy commented Oct 19, 2017

Would it be better to use an *args, **kwargs approach for flexibility and future-proofing?

@steven-lee-qadium
Copy link
Contributor Author

@tclancy I have implemented your future-proofing idea!

@tclancy
Copy link
Collaborator

tclancy commented Oct 19, 2017

Thanks, would it be possible to also add a test/ tests to prove this new behavior works as intended?

@steven-lee-qadium
Copy link
Contributor Author

Note that the failing test is mentioned in #24 that is an existing regression in the test - it would be nice for this to be merged still.

@tclancy
Copy link
Collaborator

tclancy commented Oct 19, 2017

Does this need to be updated now or is it obsolete?

@steven-lee-qadium
Copy link
Contributor Author

@tclancy Remerged master with test fix, so now everything is ready to go.

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 this pull request may close these issues.

None yet

3 participants