Hey Guys, The only way I could find to access the Rails logger object was to subclass from ApplicationController... can anyone suggest a more sensible way of doing it? Soroe. -- Posted via http://www.ruby-forum.com/.
Matt Palmer
2006-Aug-06 08:44 UTC
[Rails] Re: Rails logger: how to access it in a my own class
On Sun, Aug 06, 2006 at 09:54:43AM +0200, Sonny Chee wrote:> The only way I could find to access the Rails logger object was to > subclass from ApplicationController... can anyone suggest a more > sensible way of doing it?I usually just use RAILS_DEFAULT_LOGGER, but I''m not sure if that''s quite the Officially Sanctioned way of doing it. - Matt -- You have a 16-bit quantity, but 5 bits of it are here and 2 bits of it are there... and 2 bits of it are back here and 3 bits of it are up there. The C code to extract useful data had so many >> and << operators in it that it looked like the C++ version of "hello world". -- Matt Roberds, ASR
Ćukasz Piestrzeniewicz
2006-Aug-06 08:46 UTC
[Rails] Re: Rails logger: how to access it in a my own class
Sonny Chee wrote:> Hey Guys, > > The only way I could find to access the Rails logger object was to > subclass from ApplicationController... can anyone suggest a more > sensible way of doing it?def logger RAILS_DEFAULT_LOGGER end Cheers, Bragi -- Posted via http://www.ruby-forum.com/.