Hi, What''s the best way to get the default logger (the one used during the tests) from inside a class that doesn''t inherit any rails class? Thanks Oscar --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060404/8ae5cfa0/attachment.html
Hi Oscar, I was looking for that myself, but didn''t find any documentation on how to do that exactly. But in this documentation ( http://wiki.rubyonrails.org/rails/pages/HowtoConfigureLogging) you''ll see that there is a Rails constant RAILS_DEFAULT_LOGGER, which works fine. I am not sure if that is the right way though. RAILS_DEFAULT_LOGGER.warn("xyz") Cheers, Mariano On 4/4/06, Oscar Picasso <oscgoogle@yahoo.com> wrote:> > Hi, > > What''s the best way to get the default logger (the one used during the > tests) from inside a class that doesn''t inherit any rails class? > > Thanks > > Oscar > > ------------------------------ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1?/min. > <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com> > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060406/9a81ada3/attachment-0004.html
Hi Oscar, I was looking for that myself, but didn''t find any documentation on how to do that exactly. But in this documentation ( http://wiki.rubyonrails.org/rails/pages/HowtoConfigureLogging) you''ll see that there is a Rails constant RAILS_DEFAULT_LOGGER, which works fine. I am not sure if that is the right way though. RAILS_DEFAULT_LOGGER.warn("xyz") Cheers, Mariano On 4/4/06, Oscar Picasso <oscgoogle@yahoo.com> wrote:> > Hi, > > What''s the best way to get the default logger (the one used during the > tests) from inside a class that doesn''t inherit any rails class? > > Thanks > > Oscar > > ------------------------------ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1?/min. > <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com> > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060406/75582bbf/attachment.html