Skip to content

✨ [#586] Replace logging with structlog#594

Merged
stevenbal merged 10 commits intomasterfrom
feature/586-add-structlog
May 19, 2025
Merged

✨ [#586] Replace logging with structlog#594
stevenbal merged 10 commits intomasterfrom
feature/586-add-structlog

Conversation

@stevenbal
Copy link
Collaborator

@stevenbal stevenbal commented May 15, 2025

Fixes #586

Requires maykinmedia/open-api-framework#138 to be merged/released

Changes

  • Replace stdlib logging with structlog
  • Upgrade open-api-framework
  • Ensure uwsgi logs are formatted as JSON
  • Add log events for creation/updating of objects

@stevenbal stevenbal marked this pull request as draft May 15, 2025 10:26
@codecov-commenter
Copy link

codecov-commenter commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.77%. Comparing base (5654471) to head (ba52edb).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #594      +/-   ##
==========================================
+ Coverage   94.69%   94.77%   +0.08%     
==========================================
  Files         148      148              
  Lines        5142     5164      +22     
==========================================
+ Hits         4869     4894      +25     
+ Misses        273      270       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stevenbal stevenbal force-pushed the feature/586-add-structlog branch 5 times, most recently from e09cafa to 0c0f375 Compare May 16, 2025 08:23
@stevenbal stevenbal force-pushed the feature/586-add-structlog branch 8 times, most recently from e171867 to d67d884 Compare May 16, 2025 15:02
@stevenbal stevenbal marked this pull request as ready for review May 19, 2025 08:18
@stevenbal stevenbal force-pushed the feature/586-add-structlog branch from aa42abc to fdde828 Compare May 19, 2025 11:52
Copy link
Contributor

@danielmursa-dev danielmursa-dev left a comment

Choose a reason for hiding this comment

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

Good 👍

@stevenbal stevenbal merged commit ebc4ae8 into master May 19, 2025
25 checks passed
@stevenbal stevenbal deleted the feature/586-add-structlog branch May 19, 2025 12: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.

Add and configure structlog, using django-structlog

3 participants