Update dependency python-json-logger to v4 #25
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
cpressland/frontdoor-ipgroup-updater!25
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/python-json-logger-4.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^2.0.4→^4.0.0Release Notes
nhairs/python-json-logger (python-json-logger)
v4.2.0: 4.2.0Compare Source
Changed
dictno longer modifies it.exc_infoandstack_infowere previously added to the caller'sdict. #66project.optional-dependencies.devto[dependency-groups].dev(PEP 735). #46Fixed
$style formats now support unbraced$namefields, not just${name}. #18Thanks @gaoflow, @prateek-dagar, @Sanjays2402
v4.1.0: 4.1.0Compare Source
Added
Removed
v4.0.0: 4.0.0Compare Source
Added
DictConfiguratorprefixes forrename_fieldsandstatic_fields. #45ext://sys.stderrinfileConfig/dictConfigvalue fields.fmt(style=",") e.g."asctime,message,levelname"#15python-json-loggerand thus care should be taken not to pass this format to other logging Formatter implementations.fmt. #16Changed
pythonjsonlogger.core.LogRecordandlog_recordarguments to avoid confusion / overlapping withlogging.LogRecord. #38pythonjsonlogger.core.BaseJsonFormatter(and any child classes).serialize_log_recordadd_fieldsjsonify_log_recordprocess_log_recordlog_recordhave not had their function name changed.Removed
DictConfiguratorext://prefix format when usingfileConfig/dictConfig. #47pythonjsonlogger.json.JsonFormatter:json_default,json_encoder,json_serializer.pythonjsonlogger.orjson.OrjsonFormatter:json_default.pythonjsonlogger.msgspec.MsgspecFormatter:json_default.Thanks @rubensa
v3.3.0: 3.3.0Compare Source
Added
exc_info_as_arrayandstack_info_as_arrayoptions are added topythonjsonlogger.core.BaseJsonFormatterallowing both to be encoded as list of lines instead of a single multi-line string. #35Security
msgspec-python313-prefromdevdependencies preventing potential RCE. Details: GHSA-wmxh-pxcx-9w24Thanks @1hakusai1 and @omnigodz
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: https://github.com/nhairs/python-json-logger/compare/v2.0.7...v3.0.0
Configuration
📅 Schedule: (UTC)
🚦 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.