RailsCasts Pro episodes are now free!

Learn more or hide this

Chirag Singhal's Profile

GitHub User: chiragsinghal

Site: sumeruonrails.com

Comments by Chirag Singhal


Hi Ryan,
Is it possible to add session variables as log tags to the log file or maybe some other way to add that info against each request?
I am migrating an app over from Rails 2.0 and only thing I can't get to work is adding session[:user_id] to the log output for each request.
Earlier it was done using monkey-patching ActionController's "log_processing" method.