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

LOG_USER_ATTRIBUTE #44

Closed adaniels21487 closed 4 years ago

adaniels21487 commented 4 years ago

LOG_USER_ATTRIBUTE - a new setting to allow the substitution of the user ID with another attribute.

This is useful for me, I hope it is useful to others. Please let me know if you would like anything modified.

j4mie commented 4 years ago

This looks great, thanks @adaniels21487. I'll make some time to get this merged and released as soon as possible.