search for: howtoaccessthelogfil

Displaying 1 result from an estimated 1 matches for "howtoaccessthelogfil".

Did you mean: howtoaccessthelogfile
2005 Dec 29
2
Access rails logger from plain class
How can I "get" the rails logger from a plain class, that is a class that does not inherit from a rails class? I have tried using RAILS_DEFAULT_LOGGER (see below) but it''s nil class MyClass logger = RAILS_DEFAULT_LOGGER def myMethod logger.debug("stuff...") end end -- Posted via http://www.ruby-forum.com/.