Forum: Ruby on Rails individual log files for 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.
71ff5a1ce01ff8a16580f421160a159d?d=identicon&s=25 John (Guest)
on 2007-02-08 15:59
I have my normal rails application and also a ruby file that does
thumbnailing. The thumbnailer is run as a seperate process and I want to
give it its own log file (it periodically grabs jobs from the database,
generating a lot of sql in my development.log file).  I've tried setting
logger = Logger.new ("file.log") at the start of the thumbnailer code,
and when I log messages they go to that file, but the SQL logging still
goes to development.  Is there any way to set things up so the SQL and
logging from the thumbnailer goes to it's own log file?

-John
This topic is locked and can not be replied to.