Hello everybody, I need to log some messages from some class on Libs directory, do you know how can I access the logger.info from this directory ? is there a way to do this ? I would appreciate your help, thanks in advice --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 13 Feb., 00:39, "sergio.sprite" <sergio.spr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello everybody, I need to log some messages from some class on Libs > directory, do you know how can I access the logger.info from this > directory ? is there a way to do this ? I would appreciate your help, > thanks in adviceif you use a rake with option ''environment'', just use that: RAILS_DEFAULT_LOGGER.info(''xxxx'') ;-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 13 Feb 2009, at 12:40, Oldtimer wrote:> > > > On 13 Feb., 00:39, "sergio.sprite" <sergio.spr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Hello everybody, I need to log some messages from some class on Libs >> directory, do you know how can I access the logger.info from this >> directory ? is there a way to do this ? I would appreciate your help, >> thanks in advice > > if you use a rake with option ''environment'', just use that: > > RAILS_DEFAULT_LOGGER.info(''xxxx'') >Or Rails.logger (which boils down to the same thing)> ;-) > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---