structlog icon indicating copy to clipboard operation
structlog copied to clipboard

Rework stdlib compat

Open segfault opened this issue 3 years ago • 0 comments

Summary

Reworking a few things to allow make_filtering_bound_logger to provide FilteringBoundLogger's that inherit from BoundLogger instead of BoundLoggerBase which results in stdlib logger compatibility. Additionally adding a wrapper property for filters which was missing from BoundLogger.

This should close #469 and result in the docs matching what's being provided by make_filtering_bound_logger, so I believe no documentation will need to be updated.

Pull Request Check List

  • [x] Added tests for changed code.
    • The CI fails with less than 100% coverage.
  • [x] New APIs are added to typing_examples.py.
  • [x] Updated documentation for changed code.
    • [x] New functions/classes have to be added to docs/api.rst by hand.
    • [x] Changed/added classes/methods/functions have appropriate versionadded, versionchanged, or deprecated directives. Find the appropriate next version in our __init__.py file.
  • [x] Documentation in .rst and .md files is written using semantic newlines.
  • [x] Changes (and possible deprecations) are documented in the changelog.
  • [x] Consider granting push permissions to the PR branch, so maintainers can fix minor issues themselves without pestering you.

segfault avatar Nov 14 '22 05:11 segfault