I use Devise in Rails 3. I want to see name of current_user in production.log.
I would like to configure rails like this:
config.log_tags = [:user_na
For anyone using Redis::Store @fjuillen's answer looks like this:
redis = Redis::Store.new redis.select 3 # only if you use a different database result = redis.get req.cookie_jar["_session_id"]
tested on rails 4.