Logging-json

Latest version: v0.5.0

Safety actively analyzes 623860 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.5.0

Added
- Explicit support for python `3.12`. Meaning `taskName` is now considered a reserved keyword where value is supposed to be contained in the record itself (otherwise value will be `taskName` for python < 3.12 when specified).
- New parameters `default_time_format` (default to `%Y-%m-%d %H:%M:%S`) and `default_msec_format` (default to `%s,%03d`) allowing to change the formatting of `asctime`.
- More details can be found in the documentation on what the impact is when changing those values.

Fixed
- non-ASCII but valid UTF-8 values and field names will now be output as provided (they will not be escaped anymore).

0.4.0

Changed
- Default message key is now `message` instead of `msg` to stay in line with python default. If you still want previous behavior, set `message_field_name` to `msg` at formatter creation.

Removed
- Drop support for python 3.6.

0.3.0

Added
- Added `exception_field_name` parameter.

0.2.1

Fixed
- `datetime`, `time` and `date` instances are now represented following [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html) format instead of raising a `TypeError`.
- Default to the `str` representation of value instead of raising a `TypeError` for non-standard python types.

0.2.0

Added
- Added `message_field_name` parameter.

0.1.0

Fixed
- Handle `extra` logging parameter.

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.