Joel Oliveira
2007-May-22 21:53 UTC
Where do ''logger.debug'' statements go in a production environment?
Specifically within the dreamhost environment (fastcgi)? (that''s the only place I''ve attempted deploying out to). I''ve placed a few logger.debug statements in my application but don''t see them popping up anywhere - production.log, error.log ... and I have no idea where it might be going out to? Or should I use something like logger.error? thanks for the help! - J --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Joel Oliveira
2007-May-22 22:04 UTC
Re: Where do ''logger.debug'' statements go in a production environment?
just tracked something down that said to try logger.warn and that seems to be doing the trick. carry on :) On 5/22/07, Joel Oliveira <joel.oliveira-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Specifically within the dreamhost environment (fastcgi)? (that''s the > only place I''ve attempted deploying out to). > > I''ve placed a few logger.debug statements in my application but don''t > see them popping up anywhere - production.log, error.log ... and I > have no idea where it might be going out to? > > Or should I use something like logger.error? > > thanks for the help! > > - J >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Husein Choroomi
2007-May-22 22:43 UTC
Re: Where do ''logger.debug'' statements go in a production environment?
Rails uses built-in Ruby Logger class and sets logging level based on running environment. INFO for production and DEBUG for all other environments. As you can see from the Ruby documentation, the order of levels is FATAL, ERROR, WARN, INFO, DEBUG and logger only logs messages in lower levels, so it doesn''t log debug messages when the level is INFO. Look here for more info: http://www.ruby-doc.org/core/classes/Logger.html HTH, - H On 5/23/07, Joel Oliveira <joel.oliveira-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Specifically within the dreamhost environment (fastcgi)? (that''s the > only place I''ve attempted deploying out to). > > I''ve placed a few logger.debug statements in my application but don''t > see them popping up anywhere - production.log, error.log ... and I > have no idea where it might be going out to? > > Or should I use something like logger.error? > > thanks for the help! > > - J > > > >-- Husein Choroomi, CEO, CTO Yucca Intelligence Development http://www.YuccaHQ.com We make the web a better place! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Joel Oliveira
2007-May-23 19:37 UTC
Re: Where do ''logger.debug'' statements go in a production environment?
This is all extremely helpful information. Thank you, Husein, for the follow up with all the goods! - Joel On 5/22/07, Husein Choroomi <hchoroomi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Rails uses built-in Ruby Logger class and sets logging level based on > running environment. > > INFO for production and DEBUG for all other environments. > > As you can see from the Ruby documentation, the order of levels is > FATAL, ERROR, WARN, INFO, DEBUG and logger only logs messages in lower > levels, so it doesn''t log debug messages when the level is INFO. > > Look here for more info: > http://www.ruby-doc.org/core/classes/Logger.html > > HTH, > - H > > On 5/23/07, Joel Oliveira <joel.oliveira-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Specifically within the dreamhost environment (fastcgi)? (that''s the > > only place I''ve attempted deploying out to). > > > > I''ve placed a few logger.debug statements in my application but don''t > > see them popping up anywhere - production.log, error.log ... and I > > have no idea where it might be going out to? > > > > Or should I use something like logger.error? > > > > thanks for the help! > > > > - J > > > > > > > > > > -- > Husein Choroomi, > CEO, CTO > Yucca Intelligence Development > http://www.YuccaHQ.com > > We make the web a better place! > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---