Greg Hauptmann
2009-Dec-07 00:18 UTC
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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rick DeNatale
2009-Dec-07 00:34 UTC
Re: plugin or code to write HTTP headers & content to output for debug purposes? anyone have a suggestion here
On Sun, Dec 6, 2009 at 7:18 PM, Greg Hauptmann <greg.hauptmann.ruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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?Perhaps this http://raa.ruby-lang.org/project/clogger/ -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Greg Hauptmann
2009-Dec-07 00:58 UTC
Re: plugin or code to write HTTP headers & content to output for debug purposes? anyone have a suggestion here
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 2009/12/7 Rick DeNatale <rick.denatale-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> On Sun, Dec 6, 2009 at 7:18 PM, Greg Hauptmann > <greg.hauptmann.ruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> 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? > > Perhaps this > > http://raa.ruby-lang.org/project/clogger/ > > -- > Rick DeNatale > > Blog: http://talklikeaduck.denhaven2.com/ > Twitter: http://twitter.com/RickDeNatale > WWR: http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn: http://www.linkedin.com/in/rickdenatale > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- Greg http://blog.gregnet.org/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rick DeNatale
2009-Dec-07 01:17 UTC
Re: plugin or code to write HTTP headers & content to output for debug purposes? anyone have a suggestion here
On Sun, Dec 6, 2009 at 7:58 PM, Greg Hauptmann <greg.hauptmann.ruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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:3000No, Rails has been running on Rack for several releases. It uses specific adapters to let mongrel, webrick, etc. drive rack. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Greg Hauptmann
2009-Dec-07 01:32 UTC
Re: plugin or code to write HTTP headers & content to output for debug purposes? anyone have a suggestion here
oh...ok, so I should be able to get clogger working then...I''ll dive into the config details 2009/12/7 Rick DeNatale <rick.denatale-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Sun, Dec 6, 2009 at 7:58 PM, Greg Hauptmann > <greg.hauptmann.ruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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 > > No, Rails has been running on Rack for several releases. > > It uses specific adapters to let mongrel, webrick, etc. drive rack. > -- > Rick DeNatale > > Blog: http://talklikeaduck.denhaven2.com/ > Twitter: http://twitter.com/RickDeNatale > WWR: http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn: http://www.linkedin.com/in/rickdenatale > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- Greg http://blog.gregnet.org/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.