dabapps / django-log-request-id

Django middleware and log filter to attach a unique ID to every log message generated as part of a request
BSD 2-Clause "Simplified" License
371 stars 64 forks source link

Add documentation to access ID in views #50

Closed moritz89 closed 2 years ago

moritz89 commented 4 years ago

Why:

This change addresses the need by:

moritz89 commented 3 years ago

Removed the change in the test. Strange that it caused it to fail 🤷🏻‍♂️

j4mie commented 2 years ago

Thanks for this and sorry it's been open for a while.

I think this is already documented well enough in the README:

The ID also gets added to the HttpRequest object that is handed to your views, in case you need to use it in your application.

I'll expand that sentence slightly to document the attribute name, rather than adding a whole section to the README.