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 MozlogHandler that integrates renamed formatter #112

Merged
merged 9 commits into from
Apr 26, 2024

Conversation

grahamalama
Copy link
Contributor

This PR adds a new MozlogHandler class that sets sensible defaults (subclasses StreamHandler, sets the output to stdout by default) and integrates a Mozlog formatter directly into the handler.

It also renames JsonLogFormatter to MozlogFormatter, since JsonLogFormatter was too generic of a name.

This PR is intended to be fully backwards compatible, though the JsonLogFormatter is marked with a deprecation warning.

@grahamalama grahamalama requested a review from leplatrem April 23, 2024 16:26
leplatrem
leplatrem previously approved these changes Apr 25, 2024
docs/logging.rst Show resolved Hide resolved
src/dockerflow/logging.py Show resolved Hide resolved
@grahamalama grahamalama requested a review from leplatrem April 25, 2024 18:04
@leplatrem leplatrem merged commit ba6936b into main Apr 26, 2024
58 checks passed
@leplatrem leplatrem deleted the add-mozlog-handler branch April 26, 2024 07:31
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