fix(deps): update dependency python-json-logger to v3 #674
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.7
->3.2.0
Release Notes
nhairs/python-json-logger (python-json-logger)
v3.2.0
: 3.2.0Compare Source
Changed
pythonjsonlogger.[ORJSON,MSGSPEC]_AVAILABLE
no longer imports the respective package when determining availability.pythonjsonlogger.[orjson,msgspec]
now throws apythonjsonlogger.exception.MissingPackageError
when required libraries are not available. These contain more information about what is missing whilst still being anImportError
.defaults
parameter 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 theextra
parameter when logging a message.typing_extensions
is only installed on Python version < 3.10.msgspec
has only been tested against pre-release versions.Thanks @cjwatson and @bharel
v3.1.0
Compare 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.defaults
module that provides many functions for handling unsupported types.pythonjsonlogger.orjson.OrjsonFormatter
with the following additions:"ValueError: bad value passed"
__str__
if available, else__repr__
if available, else will use__could_not_encode__
pythonjsonlogger.msgspec.MsgspecFormatter
with the following additions:"ValueError: bad value passed"
__str__
if available, else__repr__
if available, else will use__could_not_encode__
int
orstr
jcrist/msgspec#680Changed
pythonjsonlogger.jsonlogger
has been moved topythonjsonlogger.json
with core functionality moved topythonjsonlogger.core
.pythonjsonlogger.core.BaseJsonFormatter
properly supports alllogging.Formatter
arguments:fmt
is unchanged.datefmt
is unchanged.style
can now support non-standard arguments by settingvalidate
toFalse
validate
allows non-standardstyle
arguments or prevents callingvalidate
on standardstyle
arguments.default
is ignored.pythonjsonlogger.json.JsonFormatter
default encodings changed:BaseException
instead 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__
mkdocs
is stored indocs/
README.md
has been moved todocs/index.md
anddocs/qucikstart.md
.CHANGELOG.md
has been moved todocs/change-log.md
SECURITY.md
has been moved and replaced with a symbolic link todocs/security.md
.Deprecated
pythonjsonlogger.jsonlogger
is nowpythonjsonlogger.json
pythonjsonlogger.jsonlogger.RESERVED_ATTRS
is nowpythonjsonlogger.core.RESERVED_ATTRS
.pythonjsonlogger.jsonlogger.merge_record_extra
is nowpythonjsonlogger.core.merge_record_extra
.Removed
pythonjsonlogger.jsonlogger.JsonFormatter._str_to_fn
replaced withpythonjsonlogger.core.str_to_object
.v3.0.1
Compare Source
Fixes
json_serialiser
->json_serializer
(#8) - @juliangilbeyv3.0.0
Compare Source
Note: using new major version to separate changes from this fork and the original (upstream). See #1 for details.
Changes
RESERVED_ATTRS
is 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 becomes conflicted, 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.