plugin or code to write HTTP headers & content to output for debug purposes? anyone have a suggestion here

Hi,

Need a way to log full HTTP headers and content as requests come into my Rails app. Is there a plugin or suggested code snippet for this? I'm guessing a before filter for the application_controller?

Thanks

Perhaps this

http://raa.ruby-lang.org/project/clogger/

looks good but I'm not sure I have rack under the bonnet in dev for rails v2.3.5? I curent test using Mongrel so I assume this means I'm not on Rack?

=> Booting Mongrel => Rails 2.3.3 application starting on http://0.0.0.0:3000

thanks

No, Rails has been running on Rack for several releases.

It uses specific adapters to let mongrel, webrick, etc. drive rack.

oh…ok, so I should be able to get clogger working then…I’ll dive into the config details