[BangPypers] Django How to log used_id with log message.
Chillar Anand
anand21nanda at gmail.com
Tue Jun 14 12:43:42 EDT 2016
>From where you are logging?
If you are logging from view, you can try `request.user.id`.
If you don't have request object, you can store user object somewhere and
log from that.
Regards,
Chillar Anand
www.avilpage.com
On Tue, Jun 14, 2016 at 8:50 PM, Sanu Madhavan <sanuptpm at gmail.com> wrote:
> Hi,
> I am following django doc
> https://docs.djangoproject.com/en/1.9/topics/logging/
> I could not find an option to log user_id with log message.
> How you guys are doing it ?.
>
>
>
> --
>
>
>
>
> <<::Regards ::>>
> sanuptpm at gmail.com
> +917736579488
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
More information about the BangPypers
mailing list