Update dependency python-json-logger to v3#953
Merged
clavedeluna merged 1 commit intomainfrom Jan 17, 2025
Merged
Conversation
13887f4 to
2c6eb8c
Compare
3f3c13c to
8b0aafc
Compare
5789348 to
6e8ebc5
Compare
6e8ebc5 to
0f911aa
Compare
|
clavedeluna
approved these changes
Jan 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
~=2.0.0->~=3.2.1Release Notes
nhairs/python-json-logger (python-json-logger)
v3.2.1: 3.2.1Compare Source
Fixed
import pythonjsonlogger.jsonlogger#29v3.2.0: 3.2.0Compare Source
Changed
pythonjsonlogger.[ORJSON,MSGSPEC]_AVAILABLEno longer imports the respective package when determining availability.pythonjsonlogger.[orjson,msgspec]now throws apythonjsonlogger.exception.MissingPackageErrorwhen required libraries are not available. These contain more information about what is missing whilst still being anImportError.defaultsparameter is no longer ignored and now conforms to the standard library. Setting a defaults dictionary will add the specified keys if the those keys do not exist in a record or weren't passed by theextraparameter when logging a message.typing_extensionsis only installed on Python version < 3.10.msgspechas only been tested against pre-release versions.Thanks @cjwatson and @bharel
v3.1.0Compare Source
This splits common funcitonality out to allow supporting other JSON encoders. Although this is a large refactor, backwards compatibility has been maintained.
Added
pythonjsonlogger.core- more details below.pythonjsonlogger.defaultsmodule that provides many functions for handling unsupported types.pythonjsonlogger.orjson.OrjsonFormatterwith the following additions:"ValueError: bad value passed"__str__if available, else__repr__if available, else will use__could_not_encode__pythonjsonlogger.msgspec.MsgspecFormatterwith the following additions:"ValueError: bad value passed"__str__if available, else__repr__if available, else will use__could_not_encode__intorstrjcrist/msgspec#680Changed
pythonjsonlogger.jsonloggerhas been moved topythonjsonlogger.jsonwith core functionality moved topythonjsonlogger.core.pythonjsonlogger.core.BaseJsonFormatterproperly supports alllogging.Formatterarguments:fmtis unchanged.datefmtis unchanged.stylecan now support non-standard arguments by settingvalidatetoFalsevalidateallows non-standardstylearguments or prevents callingvalidateon standardstylearguments.defaultis ignored.pythonjsonlogger.json.JsonFormatterdefault encodings changed:BaseExceptioninstead ofException. Now "pretty prints" the exception using the exception name and message e.g."ValueError: bad value passed"__str__if available, else__repr__if available, else will use__could_not_encode__mkdocsis stored indocs/README.mdhas been moved todocs/index.mdanddocs/qucikstart.md.CHANGELOG.mdhas been moved todocs/change-log.mdSECURITY.mdhas been moved and replaced with a symbolic link todocs/security.md.Deprecated
pythonjsonlogger.jsonloggeris nowpythonjsonlogger.jsonpythonjsonlogger.jsonlogger.RESERVED_ATTRSis nowpythonjsonlogger.core.RESERVED_ATTRS.pythonjsonlogger.jsonlogger.merge_record_extrais nowpythonjsonlogger.core.merge_record_extra.Removed
pythonjsonlogger.jsonlogger.JsonFormatter._str_to_fnreplaced withpythonjsonlogger.core.str_to_object.v3.0.1Compare Source
Fixes
json_serialiser->json_serializer(#8) - @juliangilbeyv3.0.0Compare Source
Note: using new major version to separate changes from this fork and the original (upstream). See #1 for details.
Changes
RESERVED_ATTRSis now a list and version dependentJsonFormatter.__init__return type (None) - @nhairspyproject.toml- @nhairsNew Contributors
Full Changelog: nhairs/python-json-logger@v2.0.7...v3.0.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.