Forum: Ruby on Rails individual log files for class

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
John (Guest)
on 2007-02-08 16: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 = ("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?

This topic is locked and can not be replied to.