drf-tracking icon indicating copy to clipboard operation
drf-tracking copied to clipboard

Log custom Headers information

Open mmehdi opened this issue 8 years ago • 2 comments

Hi If possible to log custom headers information? I want to track secret keys which are part of the Post header.

Thanks

mmehdi avatar Dec 15 '16 14:12 mmehdi

@mmehdi I think it's a decent feature. Not sure at the moment how best to log/store headers. Possibly as a JSONField. I always welcome a PR if you have time. I can gladly take a look and merge it in.

avelis avatar Dec 16 '16 01:12 avelis

might be possible to implement in a similar way "logging_methods" is implemented. We can take custom headers by user. I can give it a try over the weekend.

mmehdi avatar Dec 16 '16 09:12 mmehdi