structlog
structlog copied to clipboard
Rework stdlib compat
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.rstby hand. - [x] Changed/added classes/methods/functions have appropriate
versionadded,versionchanged, ordeprecateddirectives. Find the appropriate next version in our__init__.pyfile.
- [x] New functions/classes have to be added to
- [x] Documentation in
.rstand.mdfiles 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.