Skip to content

Make JsonLogFormatter easier to extend - #37

Merged
diox merged 1 commit into
mozilla-services:masterfrom
diox:make-logging-more-flexible
Sep 26, 2019
Merged

diox merged 1 commit into
mozilla-services:masterfrom
diox:make-logging-more-flexible

Conversation

@diox

@diox diox commented Sep 3, 2019 •

Copy link
Copy Markdown
Contributor

Ref #29
Ref mozilla/addons#6761

AMO has switched to Stackdriver, but we're still using python-dockerflow's JsonLogFormatter to adhere to MozLog standard. We'd like to augment the logs to leverage more Stackdriver functionality, so this is what I came up with to help us. While I was at it I added a separate method to help with mozilla/addons-server#29 because it was a good proof of concept regarding ease of extensibility.

Let me know if you consider this is going too far for you - but my alternative is pretty much copy/pasting and modifying this code in our repos...

@jezdez jezdez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

2 participants