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