How to log session variables in Rails 3.2?

103 views
Skip to first unread message

Chirag

unread,
May 11, 2012, 11:42:01 AM5/11/12
to rubyonra...@googlegroups.com
Rails 3.2 introduced tagged logging, is it possible to log session variables like session[:user_id] using that?
Tried adding that using a lambda, but session is not decrypted when the logger middleware is called.

Is there any other way to get the session variables logged against each line that is added in the log file?


Thanks
Chirag
Reply all
Reply to author
Forward
0 new messages