Django-structlog

Latest version: v9.0.1

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

Scan your dependencies

Page 2 of 10

6.0.1

-------------------------
*Fixes:*
- freeze ``django-ipware<6`` for now due to breaking changes. See `388 <https://github.com/jrobichaud/django-structlog/issues/388>`_

6.0

---------------------

See: :ref:`upgrade_6.0`

*New:*
- Python 3.12 support
- Add support of logging :ref:`commands`
- ``task_revoked`` has now a ``signame`` metadata. See `323 <https://github.com/jrobichaud/django-structlog/issues/323>`_.
- ``task_not_found`` has now a ``task_id`` and a ``task`` metadata. See `323 <https://github.com/jrobichaud/django-structlog/issues/323>`_.

*Fixes:*
- Add missing metadata when a task is revoked. See `317 <https://github.com/jrobichaud/django-structlog/issues/317>`_. Special thanks to `badziyoussef <https://github.com/badziyoussef>`_.

*Changes:*
- Drop support of python 3.7
- Drop legacy code still supporting celery < 4
- Removal of deprecated:
- :class:`django_structlog.middlewares.CeleryMiddleware`
- :class:`django_structlog.middlewares.SyncRequestMiddleware`
- :class:`django_structlog.middlewares.AsyncRequestMiddleware`
- :class:`django_structlog.middlewares.request_middleware_router`
- ``4XX`` status codes now log by default as ``WARNING`` and ``5XX`` as ``ERROR``. The behaviour of ``4XX`` can be customized with :ref:`configuration`. See `308 <https://github.com/jrobichaud/django-structlog/issues/308>`_. Special thanks to `adinhodovic <https://github.com/adinhodovic>`_.
- ``task_revoked``'s ``signum`` is now an integer instead of an object. See `323 <https://github.com/jrobichaud/django-structlog/issues/323>`_.
- ``task_not_found``'s ``message`` was removed and replaced by ``task_id`` and ``task``. See `323 <https://github.com/jrobichaud/django-structlog/issues/323>`_.
- ``task_rejected``'s ``message`` was removed and replaced by ``task_id``. See `323 <https://github.com/jrobichaud/django-structlog/issues/323>`_.
- Switched from ``git``'s ``master`` to ``main`` branch

*Other:*
- Add new :ref:`how_tos` section in the documentation.

5.3.0

---------------------

*New:*
- django setting ``DJANGO_STRUCTLOG_CELERY_ENABLED = True`` replacing :class:`django_structlog.middlewares.CeleryMiddleware`. See :ref:`upgrade_6.0` and `265 <https://github.com/jrobichaud/django-structlog/pull/265>`_. Also introduce new internal `app_settings` that may come handy for future configurations.


*Deprecations:*
- :class:`django_structlog.middlewares.CeleryMiddleware` (see above).

5.2.0

---------------------

*New:*
- Add new event ``task_started``. See `260 <https://github.com/jrobichaud/django-structlog/issues/260>`_. Special thanks to `adrenaline681 <https://github.com/adrenaline681>`_.

5.1.0

----------------------

*New:*
- Add new signal :class:`django_structlog.signals.update_failure_response` allowing to modify the response in case of failure. See `231 <https://github.com/jrobichaud/django-structlog/issues/231>`_. Special thanks to `HMaker <https://github.com/HMaker>`_.

5.0.2

----------------------

See: :ref:`upgrade_5.0`

*Fixes:*
- Fix regression in 5.0.0 and 5.0.1 where exceptions were not logged as ``error`` but as ``info``. See `226 <https://github.com/jrobichaud/django-structlog/issues/226>`_. Special thanks to `ntap-fge <https://github.com/ntap-fge>`_.

*Rollbacks from 5.0.0:*
- Rollback removal of ``django_structlog.signals.bind_extra_request_failed_metadata``. Relates the above fix.

Page 2 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.