New:
- Add a :ref:setting <settings>DJANGO_STRUCTLOG_USER_ID_FIELD = 'pk' to customize what user field to use as user_id in the logs. [#546](https://github.com/jrobichaud/django-structlog/issues/546) <https://github.com/jrobichaud/django-structlog/pull/546>_ and [#545](https://github.com/jrobichaud/django-structlog/issues/545) <https://github.com/jrobichaud/django-structlog/issues/545>. Special thanks to @sshishov <https://github.com/ sshishov>.
Changes:
- Drop support of python 3.7
- Drop support of django 3.2, and 4.1
8.0.0 (March 13, 2024)
See: :ref:upgrade_8.0
New:
- add log_kwargs to :class:django_structlog.signals.bind_extra_request_metadata, :class:django_structlog.signals.bind_extra_request_finished_metadata, and :class:django_structlog.signals.bind_extra_request_failed_metadata. See [#484](https://github.com/jrobichaud/django-structlog/issues/484) <https://github.com/jrobichaud/django-structlog/issues/484>. Special thanks to @shtoltz <https://github.com/shtoltz>.
7.1.0 (December 20, 2023)
New:
- add asgi's async view cancellation event request_cancelled. See [#413](https://github.com/jrobichaud/django-structlog/issues/413) <https://github.com/jrobichaud/django-structlog/pull/413>_ and and :ref:request_events.
7.0.0 (December 13, 2023)
See: :ref:upgrade_7.0
New:
- (celery) add priority (if available) and routing_key to task_enqueued. See [#345](https://github.com/jrobichaud/django-structlog/issues/345) <https://github.com/jrobichaud/django-structlog/pull/345>_ and [#341](https://github.com/jrobichaud/django-structlog/issues/341) <https://github.com/jrobichaud/django-structlog/issues/341>. Special thanks to badziyoussef <https://github.com/badziyoussef>.
- Django 5.0 support. See [#350](https://github.com/jrobichaud/django-structlog/issues/350) <https://github.com/jrobichaud/django-structlog/pull/350>. Take note async view cancellation when using asgi does not work yet, see [#351](https://github.com/jrobichaud/django-structlog/issues/351) <https://github.com/jrobichaud/django-structlog/issues/351>.
- Add streaming response support (for both sync and async) and Django 5's async cancellation. See [#353](https://github.com/jrobichaud/django-structlog/issues/353) <https://github.com/jrobichaud/django-structlog/pull/353>_ and :ref:streaming_response_events.
Changes:
- Supports django-ipware 6+ only. See [#403](https://github.com/jrobichaud/django-structlog/issues/403) <https://github.com/jrobichaud/django-structlog/pull/403>. Special thanks to the maintainer @un33k <https://github.com/un33k>.
- Drop support of django 4.0. See [#338](https://github.com/jrobichaud/django-structlog/issues/338) <https://github.com/jrobichaud/django-structlog/pull/338>. Special thanks to @jairhenrique <https://github.com/jairhenrique>.
Other:
- Improved demo project
- Better UI
- Easy switch between runserver_plus, wsgi an asgi
- Front-end request feedbacks using toasts
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps django-structlog from 5.3.0 to 8.1.0.
Changelog
Sourced from django-structlog's changelog.
... (truncated)
Commits
4b757b8
bumpff059c6
Merge pull request #546 from jrobichaud/custom-user-id0b36499
Merge pull request #549 from jrobichaud/dependabot/pip/requirements/pytest-8.2.1c0c2bf2
Merge pull request #548 from jrobichaud/dependabot/pip/requirements/pytest-as...d6963c0
Merge pull request #547 from jrobichaud/dependabot/pip/requirements/django-al...21379a4
chore(deps): bump pytest from 8.2.0 to 8.2.1 in /requirements627d875
chore(deps): bump pytest-asyncio from 0.23.6 to 0.23.7 in /requirements1f87ebc
chore(deps): bump django-allauth from 0.62.1 to 0.63.1 in /requirements55a92e8
Allow custom user id fieldd269fe8
Merge pull request #544 from jrobichaud/drop-django-before-42You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show