Forum: Ruby on Rails How do you log from within your custom class?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris R. (Guest)
on 2006-05-11 19:46
Hi
I know i can use loggger.info("info") to output a message to the log
file from within ActionController classes.  HOw do I do it from my own
custom class?

Thanks
Chris
Hammed M. (Guest)
on 2006-05-11 20:07
(Received via mailing list)
Try

RAILS_DEFAULT_LOGGER.info

Hammed
This topic is locked and can not be replied to.