Hi all! If you have a rails app using multiple subdomains (or domains), is it possible to split the production.log file into specific log files per domain? I.e.: production_subdomain1.log, production_subdomain2.log, etc? A visit to subdomain1.myapp.com would write to the production_subdomain1.log file, for example. Thoughts? Advice? Anyone done something like this? Thanks, -Danimal -- 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.
Danimal wrote:> Hi all! > > If you have a rails app using multiple subdomains (or domains), is it > possible to split the production.log file into specific log files per > domain? I.e.: production_subdomain1.log, production_subdomain2.log, > etc? A visit to subdomain1.myapp.com would write to the > production_subdomain1.log file, for example. > > Thoughts? Advice? Anyone done something like this?Why not use a log analyzer for this?> > Thanks, > > -DanimalBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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.
Hi Marnen! Thanks for the reply. A log analyzer would help, of course, but we often find the need to read through a log file directly. The problem with multiple subdomains in a single log file, is actions on one subdomain inter-mesh with actions on another, so reading sequentially becomes very hard. It seems like it would be neat and clean to simply have separate log files per subdomain. I would be open to suggestions on good log analyzers. We run NginX proxying to Thin. Thanks, -Danimal On Aug 6, 1:27 pm, Marnen Laibow-Koser <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Danimal wrote: > > Hi all! > > > If you have a rails app usingmultiplesubdomains (or domains), is it > > possible to split the production.log file into specific log files per > > domain? I.e.: production_subdomain1.log, production_subdomain2.log, > > etc? A visit to subdomain1.myapp.com would write to the > > production_subdomain1.log file, for example. > > > Thoughts? Advice? Anyone done something like this? > > Why not use a log analyzer for this? > > > > > Thanks, > > > -Danimal > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.-- 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.