pauldowman / better_logging

(Old/dead) A Rails plugin that improves the log format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom string and current_user

vptcnt opened this issue · comments

Hi

Nice gem ;-)
Is it possible to use the "custom string" o display the current_user ?

Thanks
Vincent

I guess you could set it to the current user, and then unset it after each request, but I wouldn't recommend it, it's a class variable. It might work but it wasn't really intended for that.

@vptcnt I myself have used Thread.current['current_user'] for this in the past